?
Path : /home/admin/public_html/old/administrator/components/com_xijc/controllers/ |
Current File : /home/admin/public_html/old/administrator/components/com_xijc/controllers/cpanel.php |
<?php // no direct access defined('_JEXEC') or die('Restricted access'); class XiJCControllerCPanel extends JController { function __construct($config = array()) { parent::__construct($config); } function display() { parent::display(); } function updates() { $id = JRequest::getVar('updateId', 0 , 'GET'); $viewName = JRequest::getCmd( 'view' , 'cpanel' ); // Get the document object $document =& JFactory::getDocument(); // Get the view type $viewType = $document->getType(); $view =& $this->getView( $viewName , $viewType ); $layout = JRequest::getCmd( 'layout' , 'cpanel.updates' ); $view->setLayout( $layout ); //echo parent::display(); echo $view->updates(); } }