[SOLVED] How to use URI Segments and Query Strings in the same project |
[eluser]amrnt[/eluser]
[quote author="fabian_o" date="1229074725"]CodeIgniter is SO powerful! If you want to use URI Segments and Query Strings in the same project, go to Code: APP/config/config.php Code: $config['uri_protocol'] = "PATH_INFO"; This will allow you to use URI Segments, URI Segments parameters and Query String parameters! e.g. Code: /controller/method/param1/param2/?param3=xxx¶m4=yyy This has just saved my life!!![/quote] HOW it saves your life... it doesn't work with me ~~~!!! when i write www.xppx.com/controller/function/ it returns me to the root page without changes in the URL moreover when i supply params to become www.xppx.com/WHATEVER_TEXT_OR_WITHOUT/?c=controller$m=function it works fine.... |
Welcome Guest, Not a member yet? Register Sign In |