Code Comments
Programming Forum and web based access to our favorite programming groups.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/
Post Follow-up to this messageThank 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> wr
ote:
>
>
> --
> 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>
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.