For Programmers: Free Programming Magazines  


Home > Archive > PHP Smarty Templates > November 2005 > Smarty vars - should I extend Smarty or set them after obj made?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Smarty vars - should I extend Smarty or set them after obj made?
Karl Timmermann

2005-11-09, 9:57 pm

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/

divantages, if any?

Thanks!
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com