yii url manager - Yii urlManager rule parametr with slash -


i have controller categorycontroller should process url kind of

http://example.com/category/param/paramnext/paramsome... 

my config includes next code:

        'urlmanager'=>array(             'urlformat'=>'path',             'rules'=>array(                'category/<name:[\w\/]+>'=>'category/view',                  '<controller:\w+>/<id:\d+>'=>'<controller>/view',                 '<controller:\w+>/<action:\w+>/<id:\d+>'=>'<controller>/<action>',                 '<controller:\w+>/<action:\w+>'=>'<controller>/<action>',             ),             'showscriptname'=>false,         ), 

but not works!

error 404 system unable find requested action "param". 

how can resolve restriction?

i have kind of $name string "param/paramnext/paramsome..."

'category/<name:[\w_\/-]+>'=>'category/view', 

that's right answer. question can closed.


Comments

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -