Welcome Guest, Not a member yet? Register   Sign In
Advanced query string
#1

[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?
#2

[eluser]noideawhattotypehere[/eluser]
http://ellislab.com/codeigniter/user-gui...uting.html
This should be enough
#3

[eluser]xxIdroxx[/eluser]
I have read that you can not do routing query string.
#4

[eluser]Ewout[/eluser]
Send it to a shared controller. There determine what action needs to be done and call the other controllers.
#5

[eluser]xxIdroxx[/eluser]
Can you give an example??
#6

[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.




Theme © iAndrew 2016 - Forum software by © MyBB