/** * @inheritdoc */ public function actions() { return ['index' => ['class' => IndexAction::className()], 'view' => ['class' => ViewAction::className()], 'update' => ['class' => UpdateAction::className()], 'create' => ['class' => CreateAction::className()], 'delete' => ['class' => DeleteAction::className()], 'file-upload' => ['class' => 'yii\\imperavi\\actions\\FileUpload', 'uploadPath' => Yii::getAlias('@app/web' . $this->storagePath()), 'uploadUrl' => $this->storagePath()], 'image-upload' => ['class' => 'yii\\imperavi\\actions\\ImageUpload', 'uploadPath' => Yii::getAlias('@app/web' . $this->storagePath()), 'uploadUrl' => $this->storagePath()], 'image-list' => ['class' => 'yii\\imperavi\\actions\\ImageList', 'uploadPath' => Yii::getAlias('@app/web' . $this->storagePath()), 'uploadUrl' => $this->storagePath()], 'file-delete' => ['class' => \bariew\yii2Tools\actions\FileDeleteAction::className()], 'file-rename' => ['class' => \bariew\yii2Tools\actions\FileRenameAction::className()]]; }
public function actions() { return ['index' => IndexAction::className(), 'view' => ViewAction::className()]; }