2 users online. Create an account or sign in to join them.Users

Search

I need to initialise an object (same as Symphony obj), and I'm looking at the extension's constructor.

Good idea or not?

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.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.2 or above
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.0 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details