Welcome Guest, Not a member yet? Register   Sign In
url like index.php?foo=
#1

[eluser]Mitja B.[/eluser]
I am useing JSON and my url are like

checkAvaliablePromotors?dateStart=2008&dateEnd=2009

i have controller:
function checkAvaliablePromotors()
{

...

}

can i read dateStart with $_GET becouse it does not work.

Thx
#2

[eluser]pistolPete[/eluser]
From the user guide:
Quote:GET data is simply disallowed by CodeIgniter since the system utilizes URI segments rather than traditional URL query strings (unless you have the query string option enabled in your config file). The global GET array is unset by the Input class during system initialization.

So either use POST or enable query strings:
Code:
$config['enable_query_strings'] = TRUE;
#3

[eluser]TheFuzzy0ne[/eluser]
Or use my [url="http://ellislab.com/forums/viewthread/106502/"]alternate URI library[/url]. Tongue




Theme © iAndrew 2016 - Forum software by © MyBB