diff --git a/application/default/controllers/IndexController.php b/application/default/controllers/IndexController.php index 218555bd..8603a1c2 100755 --- a/application/default/controllers/IndexController.php +++ b/application/default/controllers/IndexController.php @@ -84,7 +84,11 @@ class IndexController extends Zend_Controller_Action } $this->view->list_news = $rows; - + + $sql="select * from datadoi where ts_published is not null order by ts_published desc limit 4"; + $sth = $this->db->query($sql); + $this->view->dois = $sth->fetchAll(); + } } diff --git a/application/default/views/scripts/index/index.phtml b/application/default/views/scripts/index/index.phtml index 93d42b55..d45630fc 100755 --- a/application/default/views/scripts/index/index.phtml +++ b/application/default/views/scripts/index/index.phtml @@ -9,6 +9,9 @@ .carousel-inner .item .featured-image-link{text-align:center;} .featured-image{min-width:100%;text-align:center; margin:auto 0px;/*min-height:100%;*/} +