How to pass variables in URL in CodeIgniter? |
[eluser]Sinclair[/eluser]
Hi, I need to pass variables in the URL, just like this: http://www.mysite.com/rss.php?height=tal...air=blonde It is possible to do this? Best Regards,
[eluser]Sbioko[/eluser]
Why not? Just turn on GET strings in config.php and modify your controller, method triggers.
[eluser]Sinclair[/eluser]
Thanks for the reply, Where can I get examples? Best Regards,
[eluser]Sinclair[/eluser]
Once again, thanks for the reply.~ If I do this, my application will force me to use query strings? Code: $config['enable_query_strings'] = FALSE; I need to use URLs in the two ways: index.php?c=controller&m=method and index.php/controller/method At this time I have only one controller that need to use query strings. Is this possible? Best Regards,
[eluser]Sbioko[/eluser]
With hacking yes :-) Without - no :-) My favourite thing is hacking the CI core :-)
[eluser]Sinclair[/eluser]
I have searched and I found that is possible to use the $this->uri->uri_to_assoc(n) to do what I want... Best Regards, |
Welcome Guest, Not a member yet? Register Sign In |