![]() |
[TEMPLATE SYNTAX] vb:each from piece of an array
I have an array:
PHP Code:
PHP Code:
HTML Code:
<vb:each from="binaries" value="binary"> HTML Code:
<vb:each from="binaries" value="binary"> Code:
Warning: Invalid argument supplied for foreach() in D:\Sites\vbdev\includes\class_core.php(3917) : eval()'d code on line 142 Does anybody know what would be the correct syntax to use for this (from="binary.groups" is probably incorrect)? Or have I found a vBulletin bug? --------------- Added [DATE]1260659509[/DATE] at [TIME]1260659509[/TIME] --------------- I figured this out. I must use this: HTML Code:
<vb:each from="binaries" value="binary"> Just incase anyone is wondering, or searching for the same answer. Thanks to whoever looked. --------------- Added [DATE]1260659823[/DATE] at [TIME]1260659823[/TIME] --------------- That info also comes in handy if you're trying to use any arrays inside of a curly bracket. For example: HTML Code:
{vb:rawphrase {vb:raw item['phrase']}} |
THank ya.
I thought it was dot syntax, too, heh. Anyone know why it's not? |
Quote:
http://www.vbulletin.com/forum/proje...?issueid=37479 |
This post has helped me a lot of times. (I keep forgetting ;) )
|
Thanks so much! this should be in the manual :)
|
All times are GMT. The time now is 07:16 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|