Welcome Guest, Not a member yet? Register   Sign In
Loading a Model Twice

[eluser]saidai jagan[/eluser]
Hi i loaded a model in the constructor and also in the function.Whether the model loads twice? or CI automatically enables one Time ?.

Look at your log file, CI will report that the module is already loaded and will not load it a second time.

[eluser]saidai jagan[/eluser]
Thanks for u r reply Smile
were to c the log file ?.
Is that model will not be loaded Twice ?

Log file should be in 'system/logs' as long as that directory is writable and logging is enabled.

Apart from that CI is pretty smart and does not load libraries, models twice.

But why do you load in your function anyway if you already load it in the constructor?

[eluser]saidai jagan[/eluser]
Thanks fa u r replys.
Now i ll remove the models

Theme © iAndrew 2016 - Forum software by © MyBB