Smarty reserved vars and section syntax
| From: | Paolo Nesti Poggi | Date: | Thu, 05 Jun 2003 16:04:01 +0000 |
| Subject: | Smarty reserved vars and section syntax | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-9649@lists.php.net to get a copy of this message | ||
Hi, I noticed that other members of this mailing list use the syntax below
for sections:
"smarty.post.fieldname.index"
This syntax actually works with Smarty 2.5 while the one described in the
documentation
"smarty.post.fieldname[index]" fails a check in Smarty_Compiler.class.
Is the former syntax correct? Is there a reference to it somewhere on the
website?
In the end what I would like to know is if I can safely change my templates
to this syntax ("smarty.post.fieldname.index").
This would allow me to switch to Smarty 2.5 without having to comment out
lines 1690-1696 of Smarty_Compiler.class.
Thank you
Paolo