Home > Archive > PHP Smarty Templates > October 2004 > Re: [SMARTY] How can get template_dir in template file
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 |
Re: [SMARTY] How can get template_dir in template file
|
|
| Robert Amos 2004-10-10, 8:56 am |
| 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/
| |
| Srni@Gzlinux.Org 2004-10-10, 8:56 am |
| 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:
>
>
> --
> 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>
|
|
|
|
|