Exemplo n.º 1
0
 public function actionOne()
 {
     $id = $_GET['id'];
     $news = NewsModel::getOneById($id);
     $view = new View();
     $view->item = $news;
     $view->display('news/one.php');
 }
Exemplo n.º 2
0
 public function actionFormDeletenews()
 {
     $id = $_GET['id'];
     $news = NewsModel::getOneById($id);
     $view = new View();
     $view->item = $news;
     $view->display('admin/deletenews.php');
 }