public function reroute($path) {

        if (strpos($path,'://') === false) {
            if (substr($path,0,1)!='/'){
                $path = '/'.$path;
            }
            $path = $this->routeUrl($path);
        }

        header('Location: '.$path);
        $this->stop();
    }
public function reroute($path) {

        if (strpos($path,'://') === false) {
            if (substr($path,0,1)!='/'){
                $path = '/'.$path;
            }
            $path = $this->routeUrl($path);
        }

        header('Location: '.$path);
        $this->stop();
    }
public function reroute ( $ path ) { if ( strpos ( $ path , '://' ) === false ) { if ( substr ( $ path , 0 , 1 ) != '/' ) { $ path = '/' . $ path ; } $ path = $ this -> routeUrl ( $ path ) ; } header ( 'Location: ' . $ path ) ; $ this -> stop ( ) ; }
Redirect to path.
@param  String $path Path redirect to.
@return void
Redirect to path .