コード例 #1
0
 function processRequest()
 {
     //        ST::makeDebug($this->sect.DIRECTORY_SEPARATOR.$this->filename.".php");
     //var for path
     $path = '';
     //make path
     foreach ($this->sect as $pathsect) {
         $path .= $pathsect . DIRECTORY_SEPARATOR;
     }
     //check if file exist
     if (file_exists($path . $this->filename . ".php")) {
         require $path . $this->filename . ".php";
     } else {
         die(ExceptionHandler::showEmptyMessage('Данная страница не существует'));
     }
 }