Re: [SMARTY-DEV] knowing your template

[email protected] ("[email protected]") Mon, 12 Dec 2005 23:27:12 +0100
Newsgroups php.smarty.dev
Message-ID <[email protected]>
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