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

[eluser]prabeen.giri[/eluser]
If you want both of them working. I think its better to use both if we will have to show the search values to the url as query string . Otherwise only using uri segment is ok i think .
Doing this will work as per mentioned above ...

Code:
$config['uri_protocol'] = "PATH_INFO";
$config['enable_query_strings'] = TRUE;
EG.http://something.com/index.php/my_controller/my_function/page/5/?keyword=findme&keyword1=searchme

If you want to retrieve the query string then use
Code:
$this->input->get('keyword')
instead.


CodeIgniter rocks........


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



Theme © iAndrew 2016 - Forum software by © MyBB