Exemplo n.º 1
0
 /**
  * @inheritdoc
  */
 public function behaviors()
 {
     return ['verbs' => ['class' => VerbFilter::className(), 'actions' => ['delete' => ['post'], 'bulk-delete' => ['post']]], 'sortable' => ['class' => SortableController::className(), 'model' => MapTable::className()], 'statusable' => ['class' => StatusController::className(), 'model' => MapTable::className()]];
 }
Exemplo n.º 2
0
 public function behaviors()
 {
     return ['verbs' => ['class' => VerbFilter::className(), 'actions' => ['delete' => ['post']]], 'sortable' => ['class' => SortableController::className(), 'model' => Unit::className()]];
 }
Exemplo n.º 3
0
 public function behaviors()
 {
     return [['class' => SortableController::className(), 'model' => Item::className()], ['class' => StatusController::className(), 'model' => Item::className()]];
 }
Exemplo n.º 4
0
 /**
  * @inheritDoc
  */
 public function behaviors()
 {
     return ArrayHelper::merge(parent::behaviors(), [['class' => SortableController::className(), 'model' => ColTable::className(), 'ordercol' => 'sort_no']]);
 }
Exemplo n.º 5
0
 public function behaviors()
 {
     return [['class' => 'yii\\filters\\ContentNegotiator', 'formats' => ['application/json' => Response::FORMAT_JSON]], ['class' => SortableController::className(), 'model' => Photo::className()]];
 }