diff --git a/app/controllers/indexController.php b/app/controllers/indexController.php index b9e5f4f4a..a1b02196d 100755 --- a/app/controllers/indexController.php +++ b/app/controllers/indexController.php @@ -38,6 +38,8 @@ class indexController extends ActionController { $this->view->entryPaginator->_currentPage ($page); $this->view->cat_aside = $catDAO->listCategories (); + $this->view->nb_favorites = $entryDAO->countFavorites (); + $this->view->nb_total = $entryDAO->count (); } public function changeModeAction () { diff --git a/app/layout/aside.phtml b/app/layout/aside.phtml index 51c64fa08..f1c838950 100644 --- a/app/layout/aside.phtml +++ b/app/layout/aside.phtml @@ -12,7 +12,8 @@ cat_aside)) { ?>