public static function getLayoutPath() { $controllerPath = Config::getValue('path', 'layout'); return $controllerPath ? $controllerPath : Path::join('Application', 'Layout'); }
public function renderLayout() { if ($this->_layout) { $layoutPath = Path::join(ROOT_PATH, ApplicationPaths::getLayoutPath(), $this->_layout . '.phtml'); /** @noinspection PhpIncludeInspection */ require_once $layoutPath; } }