Welcome Guest, Not a member yet? Register   Sign In
website migration go about question

[eluser]Marc Arbour[/eluser]
Hi to you all.

I am asked to create a website with CI. So far, no problem.

But the actual website is abusing variables. IE: index.php?this=1&that=2&else=4&something=2.

And there are a lot of it... They also are never in the same order...

Is there any way to catch these vars to exclude them from the MVC model so that only index.php would be included in CI, and the parameters used within the controller and the view? I mean, without recoding it all...



[eluser]Phil Sturgeon[/eluser]
By default CodeIgnitor will ignore query strings such as this, unless you enable the option in the config.php file. It would be possible for you to enable the query string, dont put any expected parameters in the controller method and access your variables via GET, if you can find out how to stop CodeIgnitor from automatically unsetting the $_GET variable.

Its possible, search around!

[eluser]Marc Arbour[/eluser]
[quote author="thepyromaniac" date="1184723566"]There’s no place like![/quote]

Theme © iAndrew 2016 - Forum software by © MyBB