public function getViewFile($name){
        if(isset($this->options['locator'])){
            if($path = call_user_func($this->options['locator'], $name)){
                return $path;
            }
        }
        $path = '';
        if(isset($this->options['root'])){
            $path.=$this->options['root'].'/';
        }
        
        $path.=$name;
        return $path;
    }
public function getViewFile($name){
        if(isset($this->options['locator'])){
            if($path = call_user_func($this->options['locator'], $name)){
                return $path;
            }
        }
        $path = '';
        if(isset($this->options['root'])){
            $path.=$this->options['root'].'/';
        }
        
        $path.=$name;
        return $path;
    }
public function getViewFile ( $ name ) { if ( isset ( $ this -> options [ 'locator' ] ) ) { if ( $ path = call_user_func ( $ this -> options [ 'locator' ] , $ name ) ) { return $ path ; } } $ path = '' ; if ( isset ( $ this -> options [ 'root' ] ) ) { $ path .= $ this -> options [ 'root' ] . '/' ; } $ path .= $ name ; return $ path ; }
Get path of view file
@param string $name view name
@return string
Get path of view file