示例#1
0
 /**
  * 
  * @param string $newTemplateFile
  * @param boolean $enableCaching
  */
 public function __construct($newTemplateFile = '', $enableCaching = 0)
 {
     $this->templateFile = $newTemplateFile;
     $this->caching = $enableCaching;
     $this->cssResources = array();
     $this->jsTopResources = array();
     $this->jsBottomResources = array();
     $this->buildExclusionList();
     $this->customJs = "";
     parent::__construct();
     $this->initConfig();
     $menu = new Menu();
     $this->assign('appMenu', $menu->getMenu());
 }
示例#2
0
 public function testGetMenuJsonWithUnknownId()
 {
     $menu = new Menu();
     $this->assertEquals('[]', $menu->getMenuJson(9999));
 }