Smarty vars - should I extend Smarty or set them after obj made?
| From: | Karl Timmermann | Date: | Thu, 10 Nov 2005 01:31:20 +0000 |
| Subject: | Smarty vars - should I extend Smarty or set them after obj made? | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-13159@lists.php.net to get a copy of this message | ||
Hi,
Should I extend the Smarty obj, and set Smarty vars like template dir that way (ex. $this->template_dir = 'templates';) or should I call a new Smarty obj, then set the vars? (ex. $page = new Smarty(); $page-
template_dir = 'templates';)? What are the advantages/disadvantages, if any?Thanks!