Re: [SMARTY-DEV] block functions
| From: | Andreas Kossmeier | Date: | Thu, 04 Apr 2002 20:14:08 +0000 |
| Subject: | Re: [SMARTY-DEV] block functions | ||
| References: | 1 2 | Groups: | php.smarty.dev |
| Request: | Send a blank email to php-smarty-dev+get-31@lists.php.net to get a copy of this message | ||
Andrei Zmievski wrote:
What do you mean? The body *is* processed at compile time, it is compiled into PHP code which is evaluated at run-time and passed to the block function.sure. the body is compiled, but you can't control it in your block function.
I know what you want to achieve, but not sure of a good way to do it.is there another way using the current functionality?
It seems that the block function would need to receive compiled code as its content so that it could loop and call eval() on the code when needed..this would be the other way of doing it, but how should this eval() for the body work without losing the built-in compilation process of smarty? IMO a possible function called before compilation can do a lot, without influencing the compiling process of smarty. maybe there is a better solution for that. andreas -- andreas kossmeier bergfex.at - http://www.bergfex.at