private function getPathForView()
    {
        $methodName = lcfirst($this->method);
        $className = lcfirst($this->class);

        $package = $this->app->getPackage($this->package);
        $pathPieces = array($package['package_path'], 'res', 'view', $className, $methodName);
        $path = implode(self::DS, $pathPieces) . '.phtml';
        if (file_exists($path)) {
            return $path;
        }
        $e = new ViewFileNotFoundException('Invalid view file path, expected: "' . $path . '"');
        $e->setAdditionalData('View Path Checked: ', $path);
        throw $e;
    }
private function getPathForView()
    {
        $methodName = lcfirst($this->method);
        $className = lcfirst($this->class);

        $package = $this->app->getPackage($this->package);
        $pathPieces = array($package['package_path'], 'res', 'view', $className, $methodName);
        $path = implode(self::DS, $pathPieces) . '.phtml';
        if (file_exists($path)) {
            return $path;
        }
        $e = new ViewFileNotFoundException('Invalid view file path, expected: "' . $path . '"');
        $e->setAdditionalData('View Path Checked: ', $path);
        throw $e;
    }
private function getPathForView ( ) { $ methodName = lcfirst ( $ this -> method ) ; $ className = lcfirst ( $ this -> class ) ; $ package = $ this -> app -> getPackage ( $ this -> package ) ; $ pathPieces = array ( $ package [ 'package_path' ] , 'res' , 'view' , $ className , $ methodName ) ; $ path = implode ( self :: DS , $ pathPieces ) . '.phtml' ; if ( file_exists ( $ path ) ) { return $ path ; } $ e = new ViewFileNotFoundException ( 'Invalid view file path, expected: "' . $ path . '"' ) ; $ e -> setAdditionalData ( 'View Path Checked: ' , $ path ) ; throw $ e ; }
Get the path for a view file.
@throws \Phavour\Application\Exception\PackageNotFoundException
@throws ViewFileNotFoundException
@return string
Get the path for a view file .