Example #1
0
 static function exec()
 {
     t('POEM_EXEC_TIME');
     if (config('session_auto_start')) {
         session('[start]');
     }
     $file = APP_PATH . POEM_MODULE . '/boot/function.php';
     if (is_file($file)) {
         include $file;
     }
     // 请求模块
     $file = APP_PATH . POEM_MODULE . '/boot/config.php';
     if (is_file($file)) {
         config(include $file);
     }
     // 请求模块
     load::instance(POEM_MODULE . '\\controller\\' . POEM_CTRL, POEM_FUNC);
     // $ctrl = load::controller(POEM_CTRL); // 执行操作
     // $method = new \ReflectionMethod($ctrl, POEM_FUNC);
     // $method->invoke($ctrl);
     t('POEM_EXEC_TIME', 0);
 }
Example #2
0
 function __construct()
 {
     $this->view = load::instance('poem\\view');
 }