Advanced query string |
[eluser]xxIdroxx[/eluser]
Hello, i have a problem with query string in codeigniter 2. I would have this url: index.php?view=home that invokes the controller A => home function And another url: index.php?action=login that invokes the controller B => login function It's possible?
[eluser]noideawhattotypehere[/eluser]
http://ellislab.com/codeigniter/user-gui...uting.html This should be enough
[eluser]xxIdroxx[/eluser]
I have read that you can not do routing query string.
[eluser]Ewout[/eluser]
Send it to a shared controller. There determine what action needs to be done and call the other controllers.
[eluser]plain jane[/eluser]
Routing via querystring can be done. But its not what you do in codeigniter. Codeigniter generates SEO friendly URLs and hence it does not use querystring. Although querystring can be enabled in codeigniter. |
Welcome Guest, Not a member yet? Register Sign In |