Everything works fine until I set urlFormat to PATH. When I do that I encounter a problem that I can’t seem to figure out.
I have an admin module, and am using a CGridView there. Unfortunately, when I use the grid with a specific series of tasks, it breaks.
The series is:
a ) Set a filter
b ) Use the pager
c ) Set a filter
When done in that specific order, I get an error. After some research on these forums, I found a solution from GSTAR to add the following rule to my urlManager.
'<module:\w+>/<controller:\w+>/<action:\w+>'=>'<module>/<controller>/<action>',
This works beautifully, and I have no errors, but the url path I get in the admin module is ugly:
admin/job/edit?=xxxxxx
I wanted to get rid of the "?=", so I changed the urlManager rule to:
'<module:\w+>/<controller:\w+>/<action:\w+>/*'=>'<module>/<controller>/<action>',
This worked perfectly, except that view buttons in grids on the frontend broke as a result. They look accurate, but when clicking on them, they don’t go anywhere, so I reverted that urlManager rule:
'<module:\w+>/<controller:\w+>/<action:\w+>'=>'<module>/<controller>/<action>',
And added this rule before it:
'admin/<controller:\w+>/<action:\w+>/*'=>'admin/<controller>/<action>',
And this brings us back to square one where doing that specific series of tasks on admin grids breaks.
Any ideas?