Re: [SMARTY-GENERAL] template name from template
| From: | Andrei Zmievski | Date: | Wed, 03 Apr 2002 14:54:35 +0000 |
| Subject: | Re: [SMARTY-GENERAL] template name from template | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-3461@lists.php.net to get a copy of this message | ||
On Tue, 02 Apr 2002, Bertrand DUNOGIER wrote:
> Hi,
>
> is there a way to access the template path / name from the template
> itself ? I have a recursive template and i just spent one hour
> searching why it didn't work the way i expected, just because i copied
> the file to a new name and didn't change my include line... so is
> there any $smarty.something variable for that ?
Should it be $smarty.template or $smarty.file or
$smarty.current_template..? What about line number?
-Andrei
* The future is not what it used to be. *