execut / yii2-alias
Yii2 eXeCUT alias
Installs: 344
Dependents: 2
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 1
Open Issues: 0
Type:yii2-extension
Requires
- execut/yii2-base: ~1.0
- execut/yii2-migration: ~1.0
- yiisoft/yii2: ~2.0.6
README
Warning! Documentation is incomplete. Writing in the progress.
Yii2 module for work with url aliases and routing it between related records in database.
Install
Either run
$ php composer.phar require execut/yii2-crud "dev-master"
or add
"execut/yii2-crud": "dev-master"
to the require
section of your composer.json
file.
Usage
For configure url rule add alias bootstrap to your application bootstrap config section:
... 'bootstrap' => [ ... [ 'class' => execut\alias\bootstrap\Frontend::class, ], ... ] ...
For adding changes in target models tables structure, attach module in your console application config module:
'modules' => [ 'alias' => [ 'class' => execut\alias\Module::class, 'models' => [ 'yourUrlRouteHere' => Model::class, ], ], ],