Esempio n. 1
0
 /**
  * 在渲染前执行,为视图准备变量
  */
 protected function beforeRender()
 {
     parent::beforeRender();
     $sModelName = $this->modelName;
     switch ($this->action) {
         case 'index':
         case 'view':
         case 'edit':
             break;
         case 'create':
             break;
     }
 }