[SMARTY] When to call parent constructor?

Marcus Bointon <[email protected]>
Newsgroups gmane.comp.php.smarty.general
Message-ID <[email protected]>
I've subclassed Smarty - should I call the parent constructor before  
or after setting my own options in my constructor? i.e. should I do:

class My_Smarty extends Smarty {
     //Constructor
     public function __construct() {
         //Call parent constructor
         parent::Smarty();
         $this->request_use_auto_globals = true; //Don't use old- 
style $HTTP_*_VARS globals
     }
}

or

class My_Smarty extends Smarty {
     //Constructor
     public function __construct() {
         $this->request_use_auto_globals = true; //Don't use old- 
style $HTTP_*_VARS globals
         //Call parent constructor
         parent::Smarty();
     }
}

?

Marcus
-- 
Marcus Bointon
[email protected] | http://www.bointon.com/

-- 
Smarty General Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.