예제 #1
0
파일: FrontDev.php 프로젝트: hjr3/titon
 /**
  * Dispatches the request internally with magic!
  *
  * @access public
  * @return void
  */
 public function run()
 {
     Benchmark::start('Dispatcher');
     Hook::execute('preDispatch');
     Benchmark::start('Controller');
     $this->Controller->initialize();
     Benchmark::stop('Controller');
     Benchmark::start('Action');
     $this->Controller->preProcess();
     Hook::execute('preProcess', $this->Controller);
     $this->Controller->dispatch();
     $this->Controller->postProcess();
     Hook::execute('postProcess', $this->Controller);
     Benchmark::stop('Action');
     Benchmark::start('View');
     if ($this->View->getConfig('render') === true) {
         $this->View->initialize();
         $this->View->preRender();
         Hook::execute('preRender', $this->View);
         $this->View->run();
         $this->View->postRender();
         Hook::execute('postRender', $this->View);
     }
     Benchmark::stop('View');
     Hook::execute('postDispatch');
     Benchmark::stop('Dispatcher');
 }
예제 #2
0
파일: Front.php 프로젝트: hjr3/titon
 /**
  * Dispatches the request internally with magic!
  *
  * @access public
  * @return void
  */
 public function run()
 {
     Hook::execute('preDispatch');
     $this->Controller->initialize();
     $this->Controller->preProcess();
     Hook::execute('preProcess', $this->Controller);
     $this->Controller->dispatch();
     $this->Controller->postProcess();
     Hook::execute('postProcess', $this->Controller);
     if ($this->View->getConfig('render') === true) {
         $this->View->initialize();
         $this->View->preRender();
         Hook::execute('preRender', $this->View);
         $this->View->run();
         $this->View->postRender();
         Hook::execute('postRender', $this->View);
     }
     Hook::execute('postDispatch');
 }