Source for file cmsbase.php

Documentation is available at cmsbase.php

  1. <?php
  2. /**
  3.  * @package     Joomla.Administrator
  4.  * @subpackage  Joomla.Libraries
  5.  *
  6.  * @copyright   Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
  7.  * @license     GNU General Public License version 2 or later; see LICENSE.txt
  8.  */
  9.  
  10. defined('_JEXEC'or die('Restricted access');
  11.  
  12. /**
  13.  * Base Display Controller
  14.  *
  15.  * @package     Joomla.Site
  16.  * @subpackage  com_config
  17.  * @since       3.2
  18. */
  19. {
  20.     /**
  21.      * Prefix for the view and model classes
  22.      *
  23.      * @var    string 
  24.      * @since  3.2
  25.      */
  26.     public $prefix;
  27.  
  28.     /**
  29.      * Execute the controller.
  30.      *
  31.      * @return  mixed  A rendered view or true
  32.      *
  33.      * @since   3.2
  34.      */
  35.     public function execute()
  36.     {
  37.         // Check for request forgeries
  38.         JSession::checkToken(or jexit(JText::_('JInvalid_Token'));
  39.  
  40.         // Get the application
  41.         $this->app $this->getApplication();
  42.         $this->app->redirect('index.php?option=' $this->input->get('option'));
  43.  
  44.         $this->componentFolder $this->input->getWord('option''com_content');
  45.         $this->viewName        $this->input->getWord('view');
  46.  
  47.         return $this;
  48.     }
  49. }

Documentation generated on Tue, 19 Nov 2013 14:56:01 +0100 by phpDocumentor 1.4.3