Revised block functions
| From: | Andrei Zmievski | Date: | Tue, 26 Mar 2002 21:39:05 +0000 |
| Subject: | Revised block functions | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-3378@lists.php.net to get a copy of this message | ||
Considering feedback from this list, I have revised the block functions.
1. You cannot use attributes in the closing tag. Instead opening tag's
attributes are passed to the closing tag function invocation.
2. $smarty object passed to functions has a $_tag_stack variable. It is
an array containing names and attributes of all the block functions
that the current block function is nested in. Doing var_dump() on it
will show you the structure.
http://www.phpinsider.com/php/code/Smarty/snapshots/Smarty-snapshot-20020326.tar.gz
-Andrei
* Gun manufacturers don't make bad products, bad parents do. *