I am new and discovered cakephp.
I'd like to make a single page website. I have two controllers with the classical functions: index
, add
, edit
and delete
.
The data is composed of two different lists, each in their own template so when the visitors come, they'd see both lists on the homepage. But I don't know how to do that.
<?php
$this->start('all_series');
?>
<table class="table_media">
<tr>
<td> Titre </td>
<td> Langages </td>
<td> Créée le </td>
<tr>
<?php foreach ($series as $serie): ?>
<tr>
<td><?= $serie->title ?></td>
<td><?= $serie->languages ?></td>
<td><?= $serie->created ?></td>
</tr>
</table>
<?php $this->end();?>
This is an example in it's own template. The second list is similar. Now I want to put these lists in the homepage.
I am confused by cakePhp on that.
Thank you for your help!