Re: [SMARTY-DEV] plugin behaviour
| From: | Andrei Zmievski | Date: | Fri, 05 Apr 2002 14:32:46 +0000 |
| Subject: | Re: [SMARTY-DEV] plugin behaviour | ||
| References: | 1 | Groups: | php.smarty.dev |
| Request: | Send a blank email to php-smarty-dev+get-44@lists.php.net to get a copy of this message | ||
On Fri, 05 Apr 2002, Andreas Kossmeier wrote:
> hi,
>
> is there any reason, that custom function and block plugins have to do
> the output themselves but modifiers and inserts don't need to (the
> compiler creates the appropriate code for that)?
Yes, because custom/block functions are the most flexible ones -- they
are not specifically meant to do one thing, like modifiers or inserts,
so you have to provide your own PHP code.
-Andrei
"Try to spend the next 30 seconds not thinking
about a blue-eyed polar bear." -Feodor Dostoevsky