applications/dashboard/controllers/class.dashboardcontroller.php
public function AddSideMenu($CurrentUrl = FALSE) {
		if(!$CurrentUrl)
			$CurrentUrl = strtolower($this->SelfUrl);
		
      // Only add to the assets if this is not a view-only request
      if ($this->_DeliveryType == DELIVERY_TYPE_ALL) {
         // Configure SideMenu module
         $SideMenu = new SideMenuModule($this);
         $SideMenu->EventName = 'GetAppSettingsMenuItems';
         $SideMenu->HtmlId = '';
         $SideMenu->HighlightRoute($CurrentUrl);
			$SideMenu->Sort = C('Garden.DashboardMenu.Sort');
         
         // Hook for adding to menu
//         $this->EventArguments['SideMenu'] = &$SideMenu;
//         $this->FireEvent('GetAppSettingsMenuItems');
         
         // Add the module
         $this->AddModule($SideMenu, 'Panel');
      }
   }
public function AddSideMenu($CurrentUrl = FALSE) {
		if(!$CurrentUrl)
			$CurrentUrl = strtolower($this->SelfUrl);
		
      // Only add to the assets if this is not a view-only request
      if ($this->_DeliveryType == DELIVERY_TYPE_ALL) {
         // Configure SideMenu module
         $SideMenu = new SideMenuModule($this);
         $SideMenu->EventName = 'GetAppSettingsMenuItems';
         $SideMenu->HtmlId = '';
         $SideMenu->HighlightRoute($CurrentUrl);
			$SideMenu->Sort = C('Garden.DashboardMenu.Sort');
         
         // Hook for adding to menu
//         $this->EventArguments['SideMenu'] = &$SideMenu;
//         $this->FireEvent('GetAppSettingsMenuItems');
         
         // Add the module
         $this->AddModule($SideMenu, 'Panel');
      }
   }
public function AddSideMenu ( $ CurrentUrl = FALSE ) { if ( ! $ CurrentUrl ) $ CurrentUrl = strtolower ( $ this -> SelfUrl ) ; // Only add to the assets if this is not a view-only request if ( $ this -> _DeliveryType == DELIVERY_TYPE_ALL ) { // Configure SideMenu module $ SideMenu = new SideMenuModule ( $ this ) ; $ SideMenu -> EventName = 'GetAppSettingsMenuItems' ; $ SideMenu -> HtmlId = '' ; $ SideMenu -> HighlightRoute ( $ CurrentUrl ) ; $ SideMenu -> Sort = C ( 'Garden.DashboardMenu.Sort' ) ; // Hook for adding to menu //         $this->EventArguments['SideMenu'] = &$SideMenu; //         $this->FireEvent('GetAppSettingsMenuItems'); // Add the module $ this -> AddModule ( $ SideMenu , 'Panel' ) ; } }
Build and add the Dashboard's side navigation menu.

@since 2.0.0
@access public

@param string $CurrentUrl Used to highlight correct route in menu.
Build and add the Dashboard s side navigation menu .