How to pass variables in URL in CodeIgniter? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: How to pass variables in URL in CodeIgniter? (/showthread.php?tid=27073) |
How to pass variables in URL in CodeIgniter? - El Forum - 01-31-2010 [eluser]Sinclair[/eluser] Hi, I need to pass variables in the URL, just like this: http://www.mysite.com/rss.php?height=tall&eye=brown&hair=blonde It is possible to do this? Best Regards, How to pass variables in URL in CodeIgniter? - El Forum - 01-31-2010 [eluser]Sbioko[/eluser] Why not? Just turn on GET strings in config.php and modify your controller, method triggers. How to pass variables in URL in CodeIgniter? - El Forum - 01-31-2010 [eluser]Sinclair[/eluser] Thanks for the reply, Where can I get examples? Best Regards, How to pass variables in URL in CodeIgniter? - El Forum - 01-31-2010 [eluser]Sbioko[/eluser] http://ellislab.com/codeigniter/user-guide/general/urls.html You are welcome. How to pass variables in URL in CodeIgniter? - El Forum - 01-31-2010 [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, How to pass variables in URL in CodeIgniter? - El Forum - 01-31-2010 [eluser]Sbioko[/eluser] With hacking yes :-) Without - no :-) My favourite thing is hacking the CI core :-) How to pass variables in URL in CodeIgniter? - El Forum - 01-31-2010 [eluser]Sinclair[/eluser] Do you have done it? Best Regards, How to pass variables in URL in CodeIgniter? - El Forum - 01-31-2010 [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, |