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