ptheofan/yii2-urlrule
Composer 安装命令:
composer require ptheofan/yii2-urlrule
包简介
Enhanced UrlRules for Yii2 UrlManager component
关键字:
README 文档
README
An enhanced UrlRule for Yii2 UrlManager component.
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist ptheofan/yii2-urlrule "*"
or add
"ptheofan/yii2-urlrule": "*"
to the require section of your composer.json file.
Usage
TODO: write usage examples. In short, extend the /ptheofan/urlrule/UrlRule and override the getParamValue and the setParamValue. The rest works exactly the same as the default UrlRule. With this approach you can write rules that still use all of the default nice stuff like regexs, etc. and make them super flexible and also support named arguments that work with Database, etc. Also by extending your own routes you can easily create partial url rules, very helpful to remove code duplication and make maintenance easier.
统计信息
- 总下载量: 17
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2014-10-29