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
Post a Comment