Re: [SMARTY] Smarty, associative arrays and underscores not playing nicely
| From: | Travis Low | Date: | Sat, 11 Oct 2003 16:37:47 +0000 |
| Subject: | Re: [SMARTY] Smarty, associative arrays and underscores not playing nicely | ||
| References: | 1 2 3 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-10338@lists.php.net to get a copy of this message | ||
I was under the impression that sections didn't work on non-numerically indexed arrays. Is that a mistaken impression?
cheers,
Travis
Duncan Hill wrote:
On Saturday 11 Oct 2003 13:49, you wrote:-- Travis Low <mailto:travis@dawnstar.com> <http://www.dawnstar.com>I'm using Smarty 2.5.0 and your code worked without a hitch. I would look at the compiled template and see if you see anything obviously wrong there. Here are the key parts of mine: <?php echo $this->_tpl_vars['data']['key']['reccount']; ?> <?php echo $this->_tpl_vars['data']['key']['value_1']; ?>Turns out something between eyes and screen didn't see that something between my typing and commiting to CVS nuked the _ from the template. *sigh* I've been coding this app for a week straight now, so I'm going code-blind. Still can't get sections to work with non-numeric indices though, and that's a critical sticking point for me right now.