/**
  * @return array
  */
 public function behaviors()
 {
     /** @var AccountModule $account */
     $account = Yii::app()->getModule('account');
     if (!empty($account->modelMap[get_class($this)]['behaviors'])) {
         return $account->modelMap[get_class($this)]['behaviors'];
     }
     return parent::behaviors();
 }
Example #2
0
 /**
  * 
  * @return array
  */
 public function behaviors()
 {
     return array_merge(parent::behaviors(), array('LayoutBehavior' => array('class' => 'LayoutBehavior')));
 }