protected function getFilePath($name)
    {
        if (pathinfo($name, PATHINFO_EXTENSION) === '') {
            $name .= (substr($name, -1) === '/' ? 'index' : '') . '.' . $this->getExt();
        }
        
        return rtrim($this->path, '/') . '/' . ltrim($name, '/');
    }
protected function getFilePath($name)
    {
        if (pathinfo($name, PATHINFO_EXTENSION) === '') {
            $name .= (substr($name, -1) === '/' ? 'index' : '') . '.' . $this->getExt();
        }
        
        return rtrim($this->path, '/') . '/' . ltrim($name, '/');
    }
protected function getFilePath ( $ name ) { if ( pathinfo ( $ name , PATHINFO_EXTENSION ) === '' ) { $ name .= ( substr ( $ name , - 1 ) === '/' ? 'index' : '' ) . '.' . $ this -> getExt ( ) ; } return rtrim ( $ this -> path , '/' ) . '/' . ltrim ( $ name , '/' ) ; }
Get the path to a view file

@param string $name
@return string
Get the path to a view file