예제 #1
0
 function partialView($filename)
 {
     $this->page_active = strtolower(get_class($this));
     $this->menuHelper = MenuHelper::getInstance();
     $pages = $this->menuHelper->getNavBar($this->page_active, $this->sub_menu_active);
     $addmarging = strcmp(get_class($this), "Accueil") === 0 ? "margin-0" : "margin_bottom40";
     if (!empty($this->vars)) {
         foreach ($this->vars as $key => $value) {
             $this->tpl->assign($key, $value);
         }
     }
     $uri = Uri::getInstance()->getFragment();
     $home = "";
     if (isset($uri[0])) {
         $home = $uri[0];
         unset($uri[0]);
     }
     $this->displayTpl($filename);
 }