function chooseGui($guiType) { $guiVars = GuiGetAssigns(); switch ($guiType) { case 'main': $gui = new AppGui(); $gui->setLayout($this->layout); break; default: trigger_error("unknown gui type: {$guiType}"); break; } return $gui; }
function chooseGui($guiType) { switch ($guiType) { case 'main': $gui = new AppGui(); $gui->setLayout($this->layout); break; default: trigger_error("unknown gui type: {$guiType}"); break; } $gui->assign('showTopNav', 1); $gui->assign('topnav', array('Clients' => 'client', 'Invoices' => 'invoice')); return $gui; }
function chooseGui($guiType) { switch ($guiType) { case 'main': $gui = new AppGui(); $gui->setLayout($this->layout); break; default: trigger_error("unknown gui type: {$guiType}"); break; } $gui->assign('showTopNav', 1); // $gui->assign('topnav', array('Tasks' => 'task', 'Important' => 'important', 'Work Today' => 'worktoday')); $gui->assign('topnav', array()); return $gui; }
function fetch($tpl_file, $cache_id = null, $compile_id = null, $display = false) { $this->assign("TEMPLATE_CONTENT", $tpl_file); return parent::fetch("layouts/main.tpl", $cache_id, $compile_id, $display); }