![]() |
[SOLVED] ?q=something url like - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: [SOLVED] ?q=something url like (/showthread.php?tid=14878) |
[SOLVED] ?q=something url like - El Forum - 01-19-2009 [eluser]atno[/eluser] Hi all, How can i make codeigniter read the "?q=view_records" part of the following url and run a function? http://localhost/~atno/index.php/admin?q=view_records Thanks, Atno [SOLVED] ?q=something url like - El Forum - 01-19-2009 [eluser]Phil Sturgeon[/eluser] [SOLVED] How to use URI Segments and Query Strings in the same project. [SOLVED] ?q=something url like - El Forum - 01-19-2009 [eluser]atno[/eluser] [quote author="pyromaniac" date="1232390438"][SOLVED] How to use URI Segments and Query Strings in the same project.[/quote] aargh, thanks a lot pyro ![]() atno [SOLVED] ?q=something url like - El Forum - 01-19-2009 [eluser]Sarfaraz Momin[/eluser] Well there are a few changes in the config which would allow you to achieve the following results. Code: $config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-?'; The querystrings cannot be accessed using $_GET. You would have to parse them as URI segment. Something like below. http://localhost/~atno/index.php/admin/?q=view_records Have a good day !!! [SOLVED] ?q=something url like - El Forum - 01-19-2009 [eluser]atno[/eluser] [quote author="Sarfaraz Momin" date="1232390609"]Well there are a few changes in the config which would allow you to achieve the following results. Code: $config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-?'; The querystrings cannot be accessed using $_GET. You would have to parse them as URI segment. Something like below. http://localhost/~atno/index.php/admin/?q=view_records Have a good day !!![/quote] thanks a lot Sarfaraz atno |