Studyon Minte9.com
ZF 1.0

Study

Placeholder



1) Simple example

$this->placeholder('foo')->set("Some text for later");
...
echo $this->placeholder('foo');


2) More complex

#view
<?php $this->placeholder('foo')->captureStart(SET); // default APPEND

	// with SET - avoid fixation

<?php foreach ($this->data as $v): ?>
       <h2><?php echo $v->title ?></h2>
<?php endforeach; ?>

<?php $this->placeholder('foo')->captureEnd() ?>

<?php echo $this->placeholder('foo') ?>


http://framework.zend.com/manual/en/zend.view.helpers.html#zend.view.helpers.initial.placeholder