Re: [SMARTY] How can get template_dir in template file

From: Date: Sun, 10 Oct 2004 10:42:39 +0000
Subject: Re: [SMARTY] How can get template_dir in template file
References: 1 2  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-11871@lists.php.net to get a copy of this message
Thank you! I take it for granted that there is some smarty build in method :) > Hi, > > $smarty->assign('tpl_dir', $smarty->template_dir); > > then you can do what you want with {$tpl_dir} > > If you need something more live, either assign by a reference, or else > write a plugin to fetch it. > > -bok > > On Sun, 10 Oct 2004 18:11:26 +0800, srni@gzlinux.org <srni@gzlinux.org> wrote: > > Hi, > > > > I want to get the value of $smarty->template_dir in my template > > file. But how can I make it? I can not find anything from the manual : > > ( > > > > Is there anybody get it? > > > > Thanks! > > -- > > srni@gzlinux.org <srni@gzlinux.org> > > > > -- > > Smarty General Mailing List (http://smarty.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > > -- > Xnyo - http://xnyo.odynia.org/ > > -- > Smarty General Mailing List (http://smarty.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- srni@gzlinux.org <srni@gzlinux.org>

« previous php.smarty.general (#11871) next »