public function actions() { return ['edit-comment' => ['class' => EditableAction::className(), 'modelClass' => CommentModel::className(), 'forceCreate' => false]]; }
/** * Return a list of actions * @return array */ public function actions() { return ['edit-setting' => ['class' => EditableAction::className(), 'modelClass' => SettingModel::className(), 'forceCreate' => false]]; }
/** * Declares external actions for the controller. * This method is meant to be overwritten to declare external actions for the controller. * @return array */ public function actions() { return ['edit-seo-name' => ['class' => EditableAction::className(), 'modelClass' => SeoModel::className(), 'forceCreate' => false], 'edit-seo-category' => ['class' => EditableAction::className(), 'modelClass' => SeoModel::className(), 'forceCreate' => false], 'edit-seo-status' => ['class' => EditableAction::className(), 'modelClass' => SeoModel::className(), 'forceCreate' => false]]; }
/** * Declares external actions for the controller. * This method is meant to be overwritten to declare external actions for the controller. * @return array */ public function actions() { return ['edit-page' => ['class' => EditableAction::className(), 'modelClass' => CmsModel::className(), 'forceCreate' => false], 'toggle' => ['class' => ToggleAction::className(), 'modelClass' => CmsModel::className()]]; }
/** * Declares external actions for the controller. * This method is meant to be overwritten to declare external actions for the controller. * @return array */ public function actions() { return ['edit-category-name' => ['class' => EditableAction::className(), 'modelClass' => SeoCategoryModel::className(), 'forceCreate' => false], 'toggle' => ['class' => ToggleAction::className(), 'modelClass' => SeoCategoryModel::className()]]; }