Welcome Guest, Not a member yet? Register   Sign In
Double loaded helpers?
#1

Hello!

This time, I have only a technical question ;-)

In some cases, it would be nice to use a helper in the constructor of a controller. Like the cookie-helper in my latest case. To do so, I load it. But I also load it in BaseController to use it in other controller.

So my question is: Is the helper in that case double loaded or does CI ignore another try to load it?

The same with model. If I load a mode two times, it it two times in the memory or only once?
Reply
#2

<toxic_mod>
That would be such an opportunity to see the code of the framework. 
But the framework is available as a binary. 

OR NOT?
</toxic_mod>

only once.
Reply
#3

(02-05-2022, 08:03 AM)iRedds Wrote: <toxic_mod>
That would be such an opportunity to see the code of the framework. 
But the framework is available as a binary. 

OR NOT?
</toxic_mod>

only once.

fine. i'm not so deep in development, i coding for me and for fun. ;-)
Reply




Theme © iAndrew 2016 - Forum software by © MyBB