Code Comments
Programming Forum and web based access to our favorite programming groups.I normally use my own extended class to Configure and access Smarty.
I'll recommend you do the same and assign any var you need in the
constructor or other functions.
i.e.
class MySmarty extends Smarty {
/**
* Constructor PHP 4
*/
function MySmarty() {
$this->template_dir = '/home/site/smarty/templates';
$this->Smarty();
// You could do something like that:
$this->assign('smarty_tpl_dir', $this->template_dir;
}
Hope this could give you any ideas.
Best regards,
Jordi
On Sun, 10 Oct 2004 18:42:39 +0800, srni@gzlinux.org <srni@gzlinux.org> wrot
e:
> I take it for granted that there is some smarty build in method :)
>
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.