Exemplo n.º 1
0
 public function actions()
 {
     return ['index' => ['class' => IndexAction::className(), 'searchModel' => new PageSearch()], 'delete' => ['class' => DeleteAction::className(), 'modelClass' => Page::className()], 'toggle' => ['class' => ToggleAction::className(), 'modelClass' => Page::className()]];
 }
Exemplo n.º 2
0
 public function actions()
 {
     return ['index' => ['class' => IndexAction::className(), 'query' => BlogPost::find()], 'update' => ['class' => UpdateAction::className(), 'modelClass' => BlogPost::className()], 'delete' => ['class' => DeleteAction::className(), 'modelClass' => BlogPost::className()]];
 }
Exemplo n.º 3
0
 public function actions()
 {
     return ['index' => ['class' => IndexAction::className(), 'query' => User::find()], 'delete' => ['class' => DeleteAction::className(), 'modelClass' => User::className()], 'toggle' => ['class' => ToggleAction::className(), 'modelClass' => User::className(), 'attribute' => 'enabled']];
 }
Exemplo n.º 4
0
 public function actions()
 {
     return ['index' => ['class' => IndexAction::className(), 'query' => Menu::find()]];
 }