knowing your template
| From: | Attila Csipa | Date: | Mon, 12 Dec 2005 02:54:43 +0000 |
| Subject: | knowing your template | ||
| Groups: | php.smarty.dev | ||
| Request: | Send a blank email to php-smarty-dev+get-2811@lists.php.net to get a copy of this message | ||
Is there a way to find out for a smarty custom function which template it is
called from ? I'd like to make a gettext translation function/modifier and a
logical choice seemed to be to use the template names as domains, but the
documentation and googling turned up nothing. I know I could assign it as a
temp variable but it would not solve the problem of nested templates (include
"inside.tpl").