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