ahmed201
(Rifajas)
1
hi everybody how to customize modules url rule? I set the url to path and what I need is I have a article module and it contains articles controller
I expect url like this. example.com/article/1 resolves to example.com/article/article/view/id/1
I tried it many way but failed… help me…
Tsunami
(Erik)
2
'article/<id>'=>'article/article/view',
ahmed201
(Rifajas)
3
I tried this already but it says unable to resolve article/view
ahmed201
(Rifajas)
4
hi guys I got it… here is customized url rule
[b]
‘<controller:(article)>/<id:\d+>’=>‘article/article/view/’,
‘<controller:(article)>/<action:\w+>/<id:\d+>’=>‘article/article/<acrion>’
[/b]
ahmed201
(Rifajas)
5
hi guys what I understand is we have to use the above mentioned rule before the url rules generated by gii…