Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/andkon13/yii2actions

Default actions for yii2. What would not write monotonous action games and views to them.
https://github.com/andkon13/yii2actions

php yii2 yii2-actions

Last synced: about 2 hours ago
JSON representation

Default actions for yii2. What would not write monotonous action games and views to them.

Awesome Lists containing this project

README

        

yii2actions
===========


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