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

[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 ?.
Thanks.
#2

[eluser]davidbehler[/eluser]
Look at your log file, CI will report that the module is already loaded and will not load it a second time.
#3

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

[eluser]davidbehler[/eluser]
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?
#5

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




Theme © iAndrew 2016 - Forum software by © MyBB