ekstazi/yii2-crud-actions

Actions for basic crud

dev-master 2016-07-13 22:10 UTC

This package is auto-updated.

Last update: 2024-11-05 19:22:41 UTC


README

Set of classes for yii2 for rapid prototyping CRUD actions. Example of using:

    public function actions()
    {
        return [
            'index' => [
                'class' => IndexAction::className(),
                'modelClass' => <modelClass>,
            ],
            'create' => [
                'class' => CreateAction::className(),
                'modelClass' => <modelClass>,
            ],
            'update' => [
                'class' => UpdateAction::className(),
                'modelClass' => <modelClass>,
            ],
            'delete' => [
                'class' => DeleteAction::className(),
                'modelClass' => <modelClass>,
            ],
            'view' => [
                'class' => ViewAction::className(),
                'modelClass' => <modelClass>
            ]
        ];
    }

For details, see the description of the api in doc folder

yii2-crud-actions

Набор классов для yii2 для быстрого прототипирования CRUD-действий. Пример использования:

    public function actions()
    {
        return [
            'index' => [
                'class' => IndexAction::className(),
                'modelClass' => <modelClass>,
            ],
            'create' => [
                'class' => CreateAction::className(),
                'modelClass' => <modelClass>,
            ],
            'update' => [
                'class' => UpdateAction::className(),
                'modelClass' => <modelClass>,
            ],
            'delete' => [
                'class' => DeleteAction::className(),
                'modelClass' => <modelClass>,
            ],
            'view' => [
                'class' => ViewAction::className(),
                'modelClass' => <modelClass>
            ]
        ];
    }

Для подробностей смотрите описание api в папке doc