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
Post a Comment