Skip to content

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

Notifications You must be signed in to change notification settings

andkon13/yii2actions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages