0

How can I set up urlManager rules like that?

  • /category/category1/element/
  • /category2/element/

Yii perceives the last element as a category. I need exactly this scheme url. If you do not put the last slash, then everything is OK, but it is needed

Now i have this rules

 'blog/<category:[\w_\/-]+>' => 'blog/category',
 'blog/<category:[\w_\/-]+>/<slug>' => 'blog/post',

they do not work. There is an option to parse url and run needed action in controller, but its wrong

Mary
  • 37
  • 9

0 Answers0