Posted by Marcus Bointon on 09/27/50 11:31
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
marcus@bointon.com | http://www.bointon.com/
Navigation:
[Reply to this message]
|