|
|||
|
Hi everyone.
I need a router to add a alias to my controller named 'user' as 'my'. and also, when the url only contains param value(digits) but not param name, we add a default param name as 'id'. it means that: /user/changepassword/32 should be reroute to /user/changepassword/id/32 and /my/changeinfo/32 should be reroute to /user/changeinfo/id/32 I try following code, but it tells me "userInvalid controller specified (my)" PHP Code:
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|