コード例 #1
0
ファイル: App.php プロジェクト: nikolovns/mvsFirstTry
 public function run()
 {
     $checkUserIdentity = new \Controllers\IdentityController();
     $checkUserIdentity->getUserModel();
     $config = new \Config\Route();
     $config->runs();
     if (!$config->getCustomRoute()) {
         $this->setController();
         call_user_func_array(array($this->classController, $this->action), $this->params);
     }
 }
コード例 #2
0
ファイル: App.php プロジェクト: nikolovns/mvsFirstTry
 public function run()
 {
     $config = new \Config\Route();
     $config->runs();
     if (!$config->getCustomRoute()) {
         $this->setController();
         $binding = new Extract();
         $binding->regMethod();
         if ($binding->regMethod()) {
             $con = 'BindingModels\\' . $this->action;
             $con = new $con();
             $this->params[] = $con;
         } else {
             $this->params = [];
         }
         call_user_func_array(array($this->classController, $this->action), $this->params);
     }
 }