protected function compile()
	{
		// generate modules
		$dataModules = deserialize($this->navbarModules, true);
		$modules = array();

		foreach ($dataModules as $module)
		{
			if($module['module'] != '')
			{
				$modules[] = $this->generateModule($module);
			}
		}

		if($this->cssID[1] == '')
		{
			$cssID = $this->cssID;
			$cssID[1] = 'navbar-default';
			$this->cssID = $cssID;
		}

		$this->Template->modules = $modules;
	}