Within my layout script, I have defined specific CSS areas, such as:
<div id="section-navigation">
Test
</div>
Is there a way for me to dynamically override these sections in my view script with different data?
Below is an excerpt from my layout.phtml file:
<head>
<?php echo $this->headMeta(); ?>
<?php echo $this->headTitle(); ?>
<?php echo $this->headLink()->prependStylesheet($this->baseUrl().'/css/grid.css'); ?>
</head>
<body>
<div id="container">
<div id="header">
<h1><img src="./Images/cheyenne.jpg" alt="cheyenne-IT consulting" width="490" height="115" /><?php echo $this->escape($this->title); ?></h1>
</div>
<div id="navigation">
<ul>
<li><a href="<?php echo $this->url(array('controller'=>'arbeitskalender', 'action'=>'index'));?>">Arbeitskalender</a></li>
</ul>
</div>
<div id="content-container">
<div id="section-navigation">
test
</div>
<div id="aside">
test
</div>
<div id="content">
<?= $this->layout()->content ?>
</div>
</div>
<div id="footer">
copyright 2014
</div>
</div>
</body>
Could there be another property within the layout form that I should consider?
$this->layout()->content