コード例 #1
0
ファイル: controller.php プロジェクト: JKoelman/JEM-3
 /**
  * Display the view
  *
  */
 public function display($cachable = false, $urlparams = false)
 {
     // Load the submenu.
     // if no view found then refert to main
     JEMHelperBackend::addSubmenu(JFactory::getApplication()->input->getCmd('view', 'main'));
     parent::display();
     return $this;
 }
コード例 #2
0
ファイル: controller.php プロジェクト: BillVGN/PortalPRP
	/**
	 * Display the view
	 *
	 */
	public function display($cachable = false, $urlparams = false)
	{
		// Load the submenu - but not on edit views.
		// if no view found then refert to main
		$jinput = JFactory::getApplication()->input;
		$view = $jinput->getCmd('view', 'main');
		// add all views you won't see the submenu / sidebar
		//  - on J! 2.5 param 'hidemainmenu' let's not show the submenu
		//    but on J! 3.x the submenu (sidebar) is shown with non-clickable entries.
		//    The alternative would be to move the addSubmenu call to all views the sidebar should be shown.
		static $views_without_submenu = array('attendee', 'category', 'event', 'group', 'source', 'venue');

		if (!in_array($view, $views_without_submenu)) {
			JEMHelperBackend::addSubmenu($view);
		}

		parent::display();
		return $this;
	}