Ejemplo n.º 1
0
<?php

require __DIR__ . '/autoload.php';
$news = \App\Models\News::findLastRows();
include __DIR__ . '/App/Views/AllNews.php';
Ejemplo n.º 2
0
 protected function actionIndex()
 {
     $this->view->twigDisplay('index.html.twig', ['lastNews' => \App\Models\News::findLastRows(3)]);
 }