Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 26 days ago
JSON representation
Default actions for yii2. What would not write monotonous action games and views to them.
- Host: GitHub
- URL: https://github.com/andkon13/yii2actions
- Owner: andkon13
- Created: 2014-08-25T13:32:15.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2017-06-22T20:07:45.000Z (over 7 years ago)
- Last Synced: 2024-09-30T23:53:13.471Z (about 1 month ago)
- Topics: php, yii2, yii2-actions
- Language: PHP
- Homepage:
- Size: 32.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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