I’m using the urlManager and I can not figure out a way to get rid of “action”, replacing it by my pre-defined default action
Let me explain:
I want URL’s that look like these:
Which needs to be translated into these:
So I thought this would work:
<module:\w+>/<controller:\w+>/’ => ‘<module>/<controller>/show’,
but this leads to the following error:
The system is unable to find the requested action "id".
The system is unable to find the requested action "aaa".
It always grabs my first parameter, and acts as if it’s an action, although I believe I’ve explicitly asked to use “show” as the action all the time, as you can see in the right part of my rule.
I tried many combinations, but none of them worked.
Does someone here knows what’s going wrong or how to solve this?