Ouzo\ApplicationPaths::getLayoutPath PHP Method

getLayoutPath() public static method

public static getLayoutPath ( )
    public static function getLayoutPath()
    {
        $controllerPath = Config::getValue('path', 'layout');
        return $controllerPath ? $controllerPath : Path::join('Application', 'Layout');
    }

Usage Example

Example #1
0
 public function renderLayout()
 {
     if ($this->_layout) {
         $layoutPath = Path::join(ROOT_PATH, ApplicationPaths::getLayoutPath(), $this->_layout . '.phtml');
         /** @noinspection PhpIncludeInspection */
         require_once $layoutPath;
     }
 }