Welcome Guest, Not a member yet? Register   Sign In
[SOLVED] How to use URI Segments and Query Strings in the same project
#3

[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
and change:
Code:
$config['uri_protocol'] = "PATH_INFO";
$config['enable_query_strings'] = TRUE;

This will allow you to use URI Segments, URI Segments parameters and Query String parameters!
e.g.
Code:
/controller/method/param1/param2/?param3=xxx&param4=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....


Messages In This Thread
[SOLVED] How to use URI Segments and Query Strings in the same project - by El Forum - 01-07-2009, 10:11 AM



Theme © iAndrew 2016 - Forum software by © MyBB