CodeIgniter Forums
website migration go about question - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: website migration go about question (/thread-2122.html)



website migration go about question - El Forum - 07-17-2007

[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...

Regards

Marc


website migration go about question - El Forum - 07-17-2007

[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!


website migration go about question - El Forum - 07-17-2007

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