Beispiel #1
0
 static function run()
 {
     App::init();
     App::route();
     try {
         $obj = new ReflectionClass(App::$_controller . 'Controller');
         $instance = $obj->newInstanceArgs();
         $obj->getmethod(App::$_action . 'Action')->invoke($instance);
     } catch (Exception $e) {
         APP_DEBUG ? exit($e->getMessage()) : APP::log($e->getMessage());
     }
 }