Your IP : 216.73.216.224


Current Path : /var/www/html/administrator/components/com_jssupportticket/controllers/
Upload File :
Current File : /var/www/html/administrator/components/com_jssupportticket/controllers/template.php

<?php

/**
 * @Copyright Copyright (C) 2012 ... Ahmad Bilal
 * @license GNU/GPL http://www.gnu.org/copyleft/gpl.html
 * Company:		Buruj Solutions
  + Contact:		www.burujsolutions.com , info@burujsolutions.com
 * Created on:	May 03, 2012
  ^
  + Project: 	JS Tickets
  ^
 */
defined('_JEXEC') or die('Not Allowed');

jimport('joomla.application.component.controller');

class JSSupportticketControllerTemplate extends JSSupportTicketController {

    function __construct() {
        parent::__construct();
        $this->registerTask('add', 'edit');
    }

    function display($cachable = false, $urlparams = false) {
        $document = JFactory::getDocument();
        $jinput = JFactory::getApplication()->input;
        $viewName = $jinput->get('view', 'template');
        $layoutName = $jinput->get('layout', 'template');
        $viewType = $document->getType();
        $view = $this->getView($viewName, $viewType);
        $model = $this->getJSModel('template');
        //if (!JError::isError($model)) {
            $view->setModel($model, true);
        //}
        $view->setLayout($layoutName);
        $view->display();
    }

}

?>