]> saetta.ns0.it Git - joomla/jmnogosearch/commitdiff
Backend starts.
authorAndrea Zagli <azagli@libero.it>
Sat, 19 Dec 2009 09:13:16 +0000 (10:13 +0100)
committerAndrea Zagli <azagli@libero.it>
Sat, 19 Dec 2009 09:13:16 +0000 (10:13 +0100)
com_jmnogosearch/admin/controller.php
com_jmnogosearch/admin/models/jmnogosearch.php

index e153231ab9e87890b948b470a0e098e0b67c09e0..3e1ec0652a5568e923d7f4f660b4de3f1a493e1f 100644 (file)
@@ -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();
        }
 
        /**
index 0896497c3fc9dae7cd5b1e30c59f17a2144f24b3..7b58e36471b4f45ac4115664e1911380b6a3608d 100644 (file)
@@ -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' ) {