urlFormat set to path how would i capture $_GET params?
Thanks.
urlFormat set to path how would i capture $_GET params?
Thanks.
Like usual. The URL manager will convert path info to appropriate GET params.
While using 'path' doing a simple var_dump($_GET); outputs nothing when using 'get' doing the same thing outputs the parameters currently active in the GET
What is the URL in path format? And where did you do var_dump?
lets say:
http://www.devserver…ex.php/login/do
outputs nothing while
http://www.devserver…php?r=login/do
outputs the r variable with the login/do as the value for it.
I did dumped it in one of the controllers
This is as expected because 'login/do' is considered as the route and is not put into GET when the URL format is 'path'.
If you have a url like '/index.php/login/do/param1/value1', you would see 'param1' in GET.
I see, OK sounds fair enough will look this trough.