コード例 #1
0
ファイル: Route.php プロジェクト: Kalth/structure-of-forum
 public function getCtrl()
 {
     $aHttpVars = ['get' => Firewall::secureGet($this->routes[$this->page]), 'post' => Firewall::securePost($this->routes[$this->page]), 'files' => Firewall::secureGet($this->routes[$this->page])];
     unset($_POST, $_GET, $_FILES);
     $ctrlName = $this->routes[$this->page]['controller'];
     $ctrlName = ucwords($ctrlName) . 'Controller';
     return new $ctrlName($this->page, $aHttpVars);
 }