From: stephen@cubedesigners.com Date: Wed, 13 May 2015 15:24:57 +0000 (+0000) Subject: Update the display order of case studies (reverse chronological order). X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=ced78b4e1a45f26c96f512dcf9a2a4db4ec7e7e1;p=cubedesigners-v7.git Update the display order of case studies (reverse chronological order). --- diff --git a/framework/application/controllers/StudiesController.php b/framework/application/controllers/StudiesController.php index 3a52a33..29f63d9 100644 --- a/framework/application/controllers/StudiesController.php +++ b/framework/application/controllers/StudiesController.php @@ -14,7 +14,7 @@ class StudiesController extends CubeIT_Controller_PageController { $db = Zend_Db_Table::getDefaultAdapter(); $s = $db->select()->from('casestudies') - ->order('id ASC') + ->order('annee DESC') ->where('id = ?', $this->getRequest()->getParam('casestudy_id')); $q = $s->query(); diff --git a/framework/application/views/helpers/CasestudiesList.php b/framework/application/views/helpers/CasestudiesList.php index 34f853a..1536b8a 100644 --- a/framework/application/views/helpers/CasestudiesList.php +++ b/framework/application/views/helpers/CasestudiesList.php @@ -23,7 +23,7 @@ class Cubedesigners_View_Helper_CasestudiesList extends CubeIT_View_Helper_Abstr $db = Zend_Db_Table::getDefaultAdapter(); $s = $db->select()->from('casestudies') - ->order('id ASC'); + ->order('annee DESC'); if (!$acl) { $s->where('online = ?', 1);