Пример #1
0
 public function actionOne()
 {
     $id = $_GET['id'];
     $news = NewsModel::findOneByKey($id);
     $view = new View();
     $view->items = $news;
     $view->display('news/one.php');
 }
Пример #2
0
 /**
  * Executes the controller.
  *
  * @return array
  */
 public function execute()
 {
     return $this->view->render('index/HomeView');
 }