Diegovl
(Diego Viola1)
December 1, 2011, 12:20pm
1
Hello!
I’ve forum module that contains forum controller.
if I want access to any action the url is: myhost/forum/forum/action
How can I do to turn that URL like this one? myhost/forum/action
In summary:
<module>/<controller>/<action> to <module>/<action>, becouse the module and controller name are same.
wizardofOz
(Dannygerst)
December 1, 2011, 1:35pm
2
Hi,
did you find this documentation http://www.yiiframework.com/doc/guide/1.1/en/topics.url ? What about to hardcode the route? Or maybe you could write your own Custom URL Rule Classes.
If this does not work than please describe your problem in a more detailed way providing your current rules and configurations of Yii and the RewriteModule form apache.
Best regards,
Danny
weavora
(Yury Tolochko)
December 1, 2011, 3:16pm
3
Try create route like:
.. routes...
'forum/<action:\w+>'=>'forum/forum/<action>',