Content Dekorierer
18. Februar 2011
views/layouts/_table.php
<table>
<tr>
<td><?php echo $content; ?></td>
</tr>
</table>views/user/show.php
<?php $this->beginContent('//layouts/_table'); ?> <table> <tr> <td>Das ist eine Tabelle in einer Tabelle</td> </tr> <table> <?php $this->endContent(); ?>
Das Ergebnis
<table>
<tr>
<td>
<table>
<tr>
<td>Das ist eine Tabelle in einer Tabelle</td>
</tr>
<table>
</td>
</tr>
</table>No related posts.
Happy Birthday Blog! Du bist jetzt 2 Jahre alt.
Happy Happy Blogday!