get_instance() in pre_controller hook? |
[eluser]slowgary[/eluser]
I actually solved (most of) the problem without a hook, since it needed to happen early on in my application, not in any of the post hooks. I'm already using a BaseController class in MY_Controller, so I just tossed a few preg_replaces in the constructor of BaseController, which strip anything starting with a question mark from $this->uri->uri_string and the last segment of both $this->uri->segments and $this->uri->rsegments. Now the only problem that remains is query strings on the root domain, e.g. www.mydomain.com?utm_campaign=yadayada. Since it has nothing to do with the URI string at that point, but still confuses CI, it breaks the app. When I figure out how to overcome this I'll post a reply for the next guy. InSite, Vitoco - Thanks for your help! |
Messages In This Thread |
get_instance() in pre_controller hook? - by El Forum - 02-04-2011, 12:10 PM
get_instance() in pre_controller hook? - by El Forum - 02-04-2011, 09:14 PM
get_instance() in pre_controller hook? - by El Forum - 02-04-2011, 10:20 PM
get_instance() in pre_controller hook? - by El Forum - 02-05-2011, 07:10 AM
get_instance() in pre_controller hook? - by El Forum - 02-05-2011, 09:32 AM
get_instance() in pre_controller hook? - by El Forum - 01-23-2013, 04:06 PM
get_instance() in pre_controller hook? - by El Forum - 01-23-2013, 04:17 PM
get_instance() in pre_controller hook? - by El Forum - 01-23-2013, 05:44 PM
get_instance() in pre_controller hook? - by El Forum - 01-23-2013, 07:10 PM
get_instance() in pre_controller hook? - by El Forum - 01-23-2013, 07:21 PM
get_instance() in pre_controller hook? - by El Forum - 01-24-2013, 01:51 AM
get_instance() in pre_controller hook? - by El Forum - 02-01-2013, 04:26 AM
|