Ouzo\ApplicationPaths::getViewPath PHP Method

getViewPath() public static method

public static getViewPath ( )
    public static function getViewPath()
    {
        $controllerPath = Config::getValue('path', 'view');
        return $controllerPath ? $controllerPath : Path::join('Application', 'View');
    }

Usage Example

Beispiel #1
0
 public function __construct($viewName, array $attributes)
 {
     $this->_viewName = $viewName;
     $this->_attributes = $attributes;
     $this->_loaderPath = Path::join(ROOT_PATH, ApplicationPaths::getViewPath());
     $this->_viewFilename = $viewName . self::EXTENSION;
     $this->_viewPath = Path::join($this->_loaderPath, $this->_viewFilename);
 }
All Usage Examples Of Ouzo\ApplicationPaths::getViewPath