/apps/business/extend/AppGui.php
http://zoop.googlecode.com/ · PHP · 16 lines · 14 code · 2 blank · 0 comment · 0 complexity · da8dce50565fcec12034355ec6cfb42e MD5 · raw file
- <?php
- class AppGui extends Gui
- {
- private $layout = 'main';
-
- public function setLayout($layout)
- {
- $this->layout = $layout;
- }
-
- function fetch($tpl_file, $cache_id = null, $compile_id = null, $display = false)
- {
- $this->assign("TEMPLATE_CONTENT", $tpl_file);
- return parent::fetch('layouts/' . $this->layout . '.tpl', $cache_id, $compile_id, $display);
- }
- }