Example #1
0
 /**
  * 请求Action类中的run方法
  * @param \tfc\mvc\Action $action
  * @return void
  */
 public function runAction(Action $action)
 {
     if ($this->preAction()) {
         if ($action->preRun()) {
             $action->run();
             $action->postRun();
             $this->postAction();
         }
     }
 }
Example #2
0
 /**
  * (non-PHPdoc)
  * @see \tfc\mvc\Action::_init()
  */
 protected function _init()
 {
     parent::_init();
     $this->_initVersion();
     $this->_initEncoding();
     $this->_initLanguageType();
 }