public function actionAll() { $items = NewsModel::getAll(); $view = new View(); $view->items = $items; $view->display('admin.php'); }
public function actionAll() { $news = NewsModel::getAll(); $view = new View(); $view->items = $news; $view->display('news/all.php'); }
public function actionAll() { $items = NewsModel::getAll(); include_once __DIR__ . '/../views/news/list.php'; }