@@ -260,10 +260,11 @@ additional View Model, `$sidebarBlockView`, which will be captured to its
260
260
To better visualize this, let's look at what the final content might look like,
261
261
with comments detailing where each nested view model is injected.
262
262
263
- Here are the templates, rendered based on a 12-column grid:
263
+ Here are the templates, rendered based on a 12-column grid.
264
+
265
+ The ` content/article/view ` template:
264
266
265
267
``` php
266
- <?php // "content/article/view" template ?>
267
268
<!-- This is from the $view View Model, and the "content/article/view" template -->
268
269
<div class =" row content" >
269
270
<?= $this->article ?>
@@ -274,35 +275,39 @@ Here are the templates, rendered based on a 12-column grid:
274
275
</div >
275
276
```
276
277
278
+ The ` content/article ` template:
279
+
277
280
``` php
278
- <?php // "content/article" template ?>
279
281
<!-- This is from the $articleView View Model, and the "content/article"
280
282
template -->
281
283
<article class =" span8" >
282
284
<?= $this->escapeHtml('article') ?>
283
285
</article >
284
286
```
285
287
288
+ The ` content/main-sidebar ` template:
289
+
286
290
``` php
287
- <?php // "content/main-sidebar" template ?>
288
291
<!-- This is from the $primarySidebarView View Model, and the
289
292
"content/main-sidebar" template -->
290
293
<div class =" span2 sidebar" >
291
294
sidebar content...
292
295
</div >
293
296
```
294
297
298
+ The ` content/secondary-sidebar ` template:
299
+
295
300
``` php
296
- <?php // "content/secondary-sidebar template ?>
297
301
<!-- This is from the $secondarySidebarView View Model, and the
298
302
"content/secondary-sidebar" template -->
299
303
<div class =" span2 sidebar pull-right" >
300
304
<?= $this->block ?>
301
305
</div >
302
306
```
303
307
308
+ The ` content/block ` template:
309
+
304
310
``` php
305
- <?php // "content/block template ?>
306
311
<!-- This is from the $sidebarBlockView View Model, and the
307
312
"content/block" template -->
308
313
<div class =" block" >
0 commit comments