ZF-11838: Incomplete partialLoop note as to what Interface the passed model should implement


The note of the example #9 of View Helpers states that.. bq. The PartialLoop view helper helps solve this issue. It allows you to pass an iterable item (array or object implementing {color:red}Iterator{color}) as the model. ... which is correct and incomplete at the same time, as the interface that is really checked against is Traversable; but this cannot be implemented directly, which leaves the programmer with Iterator or IteratorAggregate.


No comments to display