Welcome Guest, Not a member yet? Register   Sign In
Page loads twice!
#3

Other than the fact that it's very difficult to figure out what's going on with that code, and some of it appears to be duplicating functionality in CI's User_agent library, it doesn't appear that anything in the code you've included is causing the error you've described.

I should point out, though, that loading a model via $CI->load->model($model) also instantiates the model, so the loader, more or less calls
Code:
$this->$model = new $model();
If you're doing something similar to the library, it could be the source of your problem.

Additionally, instead of this:
Code:
$CI->siter_page_sampler_library->save_stats($CID);
You should be able to call the other method like this:
Code:
$this->save_stats($CID);
Reply


Messages In This Thread
Page loads twice! - by behnampmdg3 - 06-14-2015, 11:01 PM
RE: Page loads twice! - by behnampmdg3 - 06-15-2015, 09:31 PM
RE: Page loads twice! - by mwhitney - 06-16-2015, 06:59 AM



Theme © iAndrew 2016 - Forum software by © MyBB