Re: [SMARTY-DEV] knowing your template

From: Date: Mon, 12 Dec 2005 22:27:12 +0000
Subject: Re: [SMARTY-DEV] knowing your template
References: 1  Groups: php.smarty.dev 
Request: Send a blank email to php-smarty-dev+get-2813@lists.php.net to get a copy of this message
boots wrote:
No, unfortuantely there is not. If you are in a compiler function (or a prefilter) you can access a private member, $compiler->_current_file -- which is the fullpath to the actual template file -- but if you want to use it after compile time, you will need to insert a corresponding assignment into the template code. There shouldn't be a problem with nesting as scope is restored after an include is completed.
Is there a plan for this in 3.0 or so? Iv

« previous php.smarty.dev (#2813) next »