/apps/business/extend/AppGui.php

http://zoop.googlecode.com/ · PHP · 16 lines · 14 code · 2 blank · 0 comment · 0 complexity · da8dce50565fcec12034355ec6cfb42e MD5 · raw file

  1. <?php
  2. class AppGui extends Gui
  3. {
  4. private $layout = 'main';
  5. public function setLayout($layout)
  6. {
  7. $this->layout = $layout;
  8. }
  9. function fetch($tpl_file, $cache_id = null, $compile_id = null, $display = false)
  10. {
  11. $this->assign("TEMPLATE_CONTENT", $tpl_file);
  12. return parent::fetch('layouts/' . $this->layout . '.tpl', $cache_id, $compile_id, $display);
  13. }
  14. }