| Current Path : /home/j/u/v/juvelize/www/administrator/components/com_zhgooglemap/ |
| Current File : /home/j/u/v/juvelize/www/administrator/components/com_zhgooglemap/controller.php |
<?php
/*------------------------------------------------------------------------
# com_zhgooglemap - Zh GoogleMap
# ------------------------------------------------------------------------
# author: Dmitry Zhuk
# copyright: Copyright (C) 2011 zhuk.cc. All Rights Reserved.
# license: http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 or later
# website: http://zhuk.cc
# Technical Support Forum: http://forum.zhuk.cc/
-------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
// import Joomla controller library
jimport('joomla.application.component.controller');
/**
* Zh GoogleMap Component Controller
*/
class ZhGoogleMapController extends JControllerLegacy
{
/**
* display task
*
* @return void
*/
function display($cachable = false, $urlparams = false)
{
$view = $this->input->get('view', 'ZhGoogleMaps');
$layout = $this->input->get('layout', 'default');
$id = $this->input->getInt('id');
JRequest::setVar('view', $view);
// call parent behavior
parent::display($cachable, $urlparams);
// Set the submenu
ZhGoogleMapHelper::addSubmenu($view);
return $this;
}
}