Answer the question
In order to leave comments, you need to log in
Layouts in zf2 - how to add position for output?
In the layout file, the output of the content happens like this: echo $this->content.
And if my template is divided into header, footer, left, content blocks and I want to display each block separately in the layout file, i.e.:
<div id="main">
<header><?=$this->header?></header>
<div id="cnt">
<? echo $this->content ?>
</div>
<footer><?=$this->footer?></footer>
</div>
Answer the question
In order to leave comments, you need to log in
There is a partial framework for this.zend.com/manual/2.3/en/modules/zend.view...<?= $this->partial('partials/header') ?>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question