Exemplo n.º 1
0
 public function actionIndex()
 {
     $blogs = BlogModel::getAll(false, true);
     $view = new View();
     $view->blogs = $blogs;
     $view->display('admin_blog/index.php');
     return true;
 }
Exemplo n.º 2
0
 public function actionIndex()
 {
     $showBlogs = 6;
     $categories = CategoryModel::getAllUsingColumns();
     $blogs = BlogModel::getAll();
     $view = new View();
     $view->categories = $categories;
     $view->blogs = $blogs;
     $view->display('blog/index.php');
     return true;
 }