andkon/yii2actions

override default actions

Maintainers

Package info

github.com/andkon13/yii2actions

pkg:composer/andkon/yii2actions

Statistics

Installs: 4 957

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

dev-master 2017-06-22 20:07 UTC

This package is not auto-updated.

Last update: 2026-02-28 23:12:42 UTC


README

Default actions for yii2. What would not write monotonous action games and views to them.
Экшены по умолчанию для yii2. Что б не писать однообразные экшены и вьюшки к ним

Uses:

class UsersController extends andkon\yii2actions\Controller
{
    protected $model = '\app\modules\users\models\Users';
}

goto http://site/index.php?r=users/ [index|update|create|view]

In controllers it is no longer necessary to write the monotonous actionIndex, actionUpdate, and so on.
It is not required to do monotonous views on different models.
If necessary, both actions and views are redefined by adding them.

в контроллерах больше не надо писать однообразные функции actionIndex, actionUpdate и тд.
не требуется делать однообразные вьюшки на разные модели.
При необходимости и экшены и вьюшки переопределяются путем их добавления.

TODO:
create controller templates for gii