Welcome Guest, Not a member yet? Register   Sign In
allowing $_GET for one page
#1

[eluser]bobbob[/eluser]
Is it possible to make a config file for just one page to allow $_GET?
I am using a prebuilt bit of software for a calendar and want to use get for that page. Is that possible?
#2

[eluser]karloff[/eluser]
http://snipplr.com/view/5967/allow-get-in-codeigniter/
any good?
#3

[eluser]bobbob[/eluser]
That seems to be a more general way for the whole app.
I am trying to limit it to one page.
As it is there may be to many urls on the page tat will need rewriting.
I am trying to find the easiest way. Right now leaning towards getting session variables from outside the app.
Thanks anyway
#4

[eluser]Colin Williams[/eluser]
That snipplr hook is pointless because you can achieve that by correctly modifying your config file. However, you could use that function to reset $_GET on the "one page" that needs it.
#5

[eluser]Kepler[/eluser]
You could use the $_REQUEST array. All POST values and all GET values are combined in this array. CodeIgniter (as far as I know) does not destroy the $_REQUEST array.

For example if you are passing name on your URL as:

Code:
http://www.yourdomain.com?name=fred

Your code can get the value by using:

Code:
if (isset($_REQUEST['name']))
{
    // your logic here...

}




Theme © iAndrew 2016 - Forum software by © MyBB