public function __construct()
 {
     parent::__construct();
     loader::sys_helper('view');
     loader::sys_helper('head_tag');
     $this->base = common::config_item('base_url');
     $this->base_url = common::config_item('base_url') . common::config_item('index_page');
     $this->base_img = common::config_item('source_url') . 'images/';
     $this->meta = meta('Content-type', 'text/html; charset=utf-8', 'equiv');
     $this->meta .= meta('author', 'Eko Heri Susanto');
 }
 function parse($template, $data, $return = TRUE)
 {
     loader::sys_helper('view');
     $output = common::register('Output');
     $template = view($template, $data, TRUE);
     if ($template == '') {
         return FALSE;
     }
     foreach ($data as $key => $val) {
         if (is_array($val)) {
             $template = $this->_parse_pair($key, $val, $template);
         } else {
             $template = $this->_parse_single($key, (string) $val, $template);
         }
     }
     if ($return == FALSE) {
         $output->append_output($template);
     }
     return $template;
 }