Index: Zend_View-Helpers-Partial.xml
===================================================================
--- Zend_View-Helpers-Partial.xml (revision 10961)
+++ Zend_View-Helpers-Partial.xml (working copy)
@@ -129,7 +129,7 @@
iterator may be any model the Partial view helper
allows.
-
+
Let's assume the following partial view script:
@@ -181,6 +181,31 @@
]]>
+
+
+
+ If you have an iterable item (array or object implementing
+ Iterator) as the model that contains objects and
+ you want to return the object instead of an array use the
+ setObjectKey method to have it set the variable name of your object.
+
+
+
+= $this->partialLoop()->setObjectKey('object')->partialLoop('partialLoop.phtml', $model); ?>
+
+]]>
+
+
+ Then in your view script you can access the object like this:
+
+
+
+= $this->object->getId(); ?>
+
+]]>
+