Esempio n. 1
0
 /**
  * Render the view
  */
 public function render()
 {
     if (null === $this->getLayoutPath()) {
         return;
     }
     /** @noinspection PhpUnusedLocalVariableInspection */
     $path = $this->getLayoutPath();
     $layoutPath = Steelcode_File_Helper::exists($this->getLayoutPath()) ? $this->getLayoutPath() : CONSTANT('INCLUDE_PATH') . 'includes/path-not-found.php';
     /** @noinspection PhpIncludeInspection */
     require_once $layoutPath;
 }
 public function extract()
 {
     $requestPath = Steelcode_Server_Vars::getVar('PATH_INFO');
     if ($requestPath === null) {
         $requestPath = $this->_generatePath();
     }
     if ($requestPath === '/') {
         $this->_defaults();
     } else {
         $this->_extractPath($requestPath);
     }
     if (!Steelcode_File_Helper::exists($this->_config->getControllerPath())) {
         $this->_pageNotFound();
     }
     return $this->_config;
 }