2017 © Pedro Peláez
 

yii2-extension yii2-urlrule

Enhanced UrlRules for Yii2 UrlManager component

image

ptheofan/yii2-urlrule

Enhanced UrlRules for Yii2 UrlManager component

  • Wednesday, October 29, 2014
  • by ptheofan
  • Repository
  • 1 Watchers
  • 0 Stars
  • 12 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

UrlRule

An enhanced UrlRule for Yii2 UrlManager component., (*1)

Installation

The preferred way to install this extension is through composer., (*2)

Either run, (*3)

php composer.phar require --prefer-dist ptheofan/yii2-urlrule "*"

or add, (*4)

"ptheofan/yii2-urlrule": "*"

to the require section of your composer.json file., (*5)

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., (*6)

The Versions

29/10 2014

dev-master

9999999-dev

Enhanced UrlRules for Yii2 UrlManager component

  Sources   Download

MIT

The Requires

 

by Paris Theofanidis

extension yii2 urlrules