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