Zend Framework PartialLoop - questions
- by Ian Warner
Hi
Ok dealing with Partial Loops I want to do several things
Perhaps pass in extra variables - seen it done like this
echo $this-partialLoop('Loop.phtml', array('data' = $data, 'var1' = foo));
But this does not seem to work - I can not extra the data using $this-var $this-data-var or $data-var not sure how to access the data in the loop
Sutotals for columns - need a way of resetting variables or passing in a default value - linked to the above I suppose
ie
$subtotal += rowTotal;
In the view that calls the partial I would like to get access to the subtotal values generated so I can display these in another table below.
Any help appreciated the docs on partialLoop seems incomplete.
Ian