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