[SOLVED] ?q=something url like |
[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
[eluser]Phil Sturgeon[/eluser]
[SOLVED] How to use URI Segments and Query Strings in the same project.
[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
[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 !!!
[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 |
Welcome Guest, Not a member yet? Register Sign In |