• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Parser error :(

#2
[eluser]NachoLabs[/eluser]
I realize this is old, but I just had the very same problem and I just solved it, so I thought i'd post the solution here, in case anybody else comes across this thread.

The problem in my case was that I was passing parse() this array:

Code:
$items = Array(0 => Array(...), 1 => Array(...), ...)

and trying to do:
Code:
{items}
   {name}
{/items}

while for that to work the correct array would have been:

Code:
$items = Array('items' => Array(0 => Array(...), 1 => Array(...), ...) )


In the case above, you probably were passing $directory['repeat'] as your array comparison, while it needed to be simply $directory. That was my mix up, at least.

Hope this was useful to somebody.


Messages In This Thread
Parser error :( - by El Forum - 11-12-2008, 09:22 AM
Parser error :( - by El Forum - 10-12-2009, 09:42 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.