Zend View : How to use an output multiple times in the same view script? -


i'm working on page show list of articles of catalog, pagination (i don't use zend_paginator)

the pagination bloc ok, render multiple times (at top , @ bottom of list)

inside view script, there way capture output, , render twice without using external view script (which executed 2 times) ?

placeholder solution, capture once, , output can used multiple times :

<?  $this->placeholder('foo')->capturestart(); ?> script make pagination... <? $this->placeholder('foo')->captureend() ?>  <!-- used 1 time --> <?= $this->placeholder('foo'); ?> items display <!-- used second time --> <?= $this->placeholder('foo'); ?> 

Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -