From 334cc19302437db270c4a587d5492b84df52bcf1 Mon Sep 17 00:00:00 2001 From: Andrea Zagli Date: Sat, 19 Dec 2009 10:13:16 +0100 Subject: [PATCH] Backend starts. --- com_jmnogosearch/admin/controller.php | 5 +---- com_jmnogosearch/admin/models/jmnogosearch.php | 14 +++++++------- 2 files changed, 8 insertions(+), 11 deletions(-) diff --git a/com_jmnogosearch/admin/controller.php b/com_jmnogosearch/admin/controller.php index e153231..3e1ec06 100644 --- a/com_jmnogosearch/admin/controller.php +++ b/com_jmnogosearch/admin/controller.php @@ -27,10 +27,7 @@ class JMnoGoSearchController extends JController */ function display() { - $model =& $this->getModel( 'JMnoGoSearch' ); - $view =& $this->getView( 'JMnoGoSearch' ); - $view->setModel( $model, true ); - $view->display(); + parent::display(); } /** diff --git a/com_jmnogosearch/admin/models/jmnogosearch.php b/com_jmnogosearch/admin/models/jmnogosearch.php index 0896497..7b58e36 100644 --- a/com_jmnogosearch/admin/models/jmnogosearch.php +++ b/com_jmnogosearch/admin/models/jmnogosearch.php @@ -46,13 +46,13 @@ class JMnoGoSearchModelJMnoGoSearch extends JModel global $mainframe, $option; $db =& JFactory::getDBO(); - $filter_order = $mainframe->getUserStateFromRequest( 'com_jmnogosearch.filter_order', 'filter_order', 'hits', 'cmd' ); - $filter_order_Dir = $mainframe->getUserStateFromRequest( 'com_jmnogosearch.filter_order_Dir', 'filter_order_Dir', '', 'word' ); - $limit = $mainframe->getUserStateFromRequest( 'global.list.limit', 'limit', $mainframe->getCfg('list_limit'), 'int' ); - $limitstart = $mainframe->getUserStateFromRequest( 'com_jmnogosearch.limitstart', 'limitstart', 0, 'int' ); - $search = $mainframe->getUserStateFromRequest( 'com_jmnogosearch.search', 'search', '', 'string' ); - $search = JString::strtolower( $search ); - $showResults = JRequest::getInt('search_results'); + $filter_order = $mainframe->getUserStateFromRequest( 'com_jmnogosearch.filter_order', 'filter_order', 'hits', 'cmd' ); + $filter_order_Dir = $mainframe->getUserStateFromRequest( 'com_jmnogosearch.filter_order_Dir', 'filter_order_Dir', '', 'word' ); + $limit = $mainframe->getUserStateFromRequest( 'global.list.limit', 'limit', $mainframe->getCfg('list_limit'), 'int' ); + $limitstart = $mainframe->getUserStateFromRequest( 'com_jmnogosearch.limitstart', 'limitstart', 0, 'int' ); + $search = $mainframe->getUserStateFromRequest( 'com_jmnogosearch.search', 'search', '', 'string' ); + $search = JString::strtolower( $search ); + $showResults = JRequest::getInt('search_results'); // table ordering if ( $filter_order_Dir == 'ASC' ) { -- 2.49.0