Exemplo n.º 1
0
 function __construct()
 {
     parent::__construct('public', 'default');
     //$this->CI->load->model();
     //$this->CI->lang->load('admin');
     //$config=array('session_name','tmpl_site','copyright','sitename','_x','_y','_h','_spath','_sStart','_sItem','_sStop','_ipath','_ifiles','server','linkget','linksave','linksavetime','_bg');
     //$this->config=$this->CI->config_model->get($config);
     $this->set_master_template();
     //if($this->CI->router->class!='home' && $this->CI->router->class!='authorize'){
     //	$this->SetSession('current_controll',$this->CI->router->class);
     //}
     $lang = $this->GetSession('lang');
     if (empty($lang)) {
         $lang = $this->CI->uri->getLang();
     }
     $this->lang = $lang;
     $this->add_region('copyright');
     $this->add_region('lang');
     $this->write('copyright', $this->config['copyright'], true);
     $this->write('title_page', $this->config['sitename'], true);
     $this->write('lang', $lang, true);
 }