From ced78b4e1a45f26c96f512dcf9a2a4db4ec7e7e1 Mon Sep 17 00:00:00 2001 From: "stephen@cubedesigners.com" Date: Wed, 13 May 2015 15:24:57 +0000 Subject: [PATCH] Update the display order of case studies (reverse chronological order). --- framework/application/controllers/StudiesController.php | 2 +- framework/application/views/helpers/CasestudiesList.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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); -- 2.39.5