2 users online. Create an account or sign in to join them.Users
Is the constructor of any extension called on any page request? (Front or Admin)
This is an open discussion with 3 replies, filed under General.
Search
As far as I can tell, extensions are initialized only if they have subscribed to a delegate which is fired during the requested page. Why would you want to instantiate another Symphony object?
Why would you want to instantiate another Symphony object?
It's an object that provides services (the same way as Symphony object provides services).
My obj != Symphony obj :)
The way I work is that if the Class/Object is required by more then one function, do it in the constructor function, otherwise, just do it in the function that requires it.
Create an account or sign in to comment.
I need to initialise an object (same as Symphony obj), and I'm looking at the extension's constructor.
Good idea or not?