public function setPathExt($path) {
        // Strip the extension from the path.
        if (substr($path, -1) !== '/' && ($pos = strrpos($path, '.')) !== false) {
            $ext = substr($path, $pos);
            $path = substr($path, 0, $pos);
            $this->env['EXT'] = $ext;
        } else {
            $this->env['EXT'] = '';
        }
        $this->env['PATH_INFO'] = $path;
        return $this;
    }
public function setPathExt($path) {
        // Strip the extension from the path.
        if (substr($path, -1) !== '/' && ($pos = strrpos($path, '.')) !== false) {
            $ext = substr($path, $pos);
            $path = substr($path, 0, $pos);
            $this->env['EXT'] = $ext;
        } else {
            $this->env['EXT'] = '';
        }
        $this->env['PATH_INFO'] = $path;
        return $this;
    }
public function setPathExt ( $ path ) { // Strip the extension from the path. if ( substr ( $ path , - 1 ) !== '/' && ( $ pos = strrpos ( $ path , '.' ) ) !== false ) { $ ext = substr ( $ path , $ pos ) ; $ path = substr ( $ path , 0 , $ pos ) ; $ this -> env [ 'EXT' ] = $ ext ; } else { $ this -> env [ 'EXT' ] = '' ; } $ this -> env [ 'PATH_INFO' ] = $ path ; return $ this ; }
Set the path with file extension.

@param string $path The path to set.
@return Request Returns $this for fluent calls.
@see Request::getPathExt()
Set the path with file extension .