/apps/business/extend/AppGui.php
PHP | 16 lines | 14 code | 2 blank | 0 comment | 0 complexity | da8dce50565fcec12034355ec6cfb42e MD5 | raw file
1<?php 2class AppGui extends Gui 3{ 4 private $layout = 'main'; 5 6 public function setLayout($layout) 7 { 8 $this->layout = $layout; 9 } 10 11 function fetch($tpl_file, $cache_id = null, $compile_id = null, $display = false) 12 { 13 $this->assign("TEMPLATE_CONTENT", $tpl_file); 14 return parent::fetch('layouts/' . $this->layout . '.tpl', $cache_id, $compile_id, $display); 15 } 16}