/**
  * @inheritDoc
  */
 public function behaviors()
 {
     return ArrayHelper::merge(parent::behaviors(), ['verbs' => ['class' => VerbFilter::className(), 'actions' => ['exists' => ['POST']]]]);
 }
Example #2
0
 /**
  * @inheritDoc
  */
 public function actions()
 {
     return ArrayHelper::merge(parent::actions(), ['upload' => ['class' => UEditorAction::className()]]);
 }
Example #3
0
 /**
  * @inheritDoc
  */
 public function behaviors()
 {
     return ArrayHelper::merge(parent::behaviors(), [['class' => SortableController::className(), 'model' => ColTable::className(), 'ordercol' => 'sort_no']]);
 }
Example #4
0
 public function init()
 {
     parent::init();
     $this->new = Yii::$app->getModule('populac')->activeModules['guestbook']->notice;
     $this->noAnswer = Guestbook::find()->where(['answer' => ''])->count();
 }