Exemplo n.º 1
0
 function news_index()
 {
     $news_model = new NewsModel();
     $news = $news_model->get_news();
     //        var_dump($news);die;
     $view = new View();
     $view->set_file_name('admin_news');
     $params = array('news' => $news, 'id' => $id);
     $view->show($params);
 }