It won't be too different from what you have! For each instance you'd
add:-
<?= $this->partial('your/script.phtml', array('title' => $title, 'nav'
=> $nav, 'content' => $content, 'vars' = $vars)) ?>
and then your partial script will look like:-
<div class="box">
<div class="box_head">
<h1><?= $this->escape($this->title) ?></h1>
<ul class="nav">
<?= $this->makeNav($this->nav) ?>
</ul>
</div>
<div class="content">
<?= $this->render($this->content) ?>
</div>
</div>
I assume that $content is a script path and not simply existing HTML
content?
Using layouts isn't necessary to achieve what you're doing here unless
you have a set of strict templates - then it's a doddle. Post some
more code and I or other can suggest an implementation.
Cheerio
<snip> ... </snip>
Does anyone have any suggestions for how best to implement this
using partials and perhaps layouts?
--
Mathew Byrne
--
Simon Mundy | Director | PEPTOLAB
""" " "" """""" "" "" """"""" " "" """"" " """"" " """""" "" "
202/258 Flinders Lane | Melbourne | Victoria | Australia | 3000
Voice +61 (0) 3 9654 4324 | Mobile 0438 046 061 | Fax +61 (0) 3 9654
4124
http://www.peptolab.com