partialCounter not available.

For programming and general questions on Zend Framework
Post Reply
ryanrk
Posts: 3
Joined: Fri Dec 07, 2012 8:01 pm

partialCounter not available.

Post by ryanrk » Wed Dec 12, 2012 9:26 pm

Using Zend Framework 2 the partialCounter comes back as null.

products.phtml

Code: Select all

<?php echo $this->partialLoop('partials/product', $this->products); ?>
product.phtml

Code: Select all

<?php var_dump($this->partialCounter); ?>
Keeps coming back NULL. According to http://framework.zend.com/manual/2.0/en ... lpers.html there should be a variable there to hold the index value.

Post Reply