Example #1
0
 private static function loadTemplateFile($_tpl_, $_vars_)
 {
     try {
         // load vars in T
         require_once COREROOT . 'V.php';
         V::set($_vars_);
         // TODO: remove and work only with T?
         extract($_vars_, EXTR_OVERWRITE);
         // save output...
         $_ret_ = '';
         ob_start();
         require $_tpl_;
         $_ret_ = ob_get_contents();
         ob_end_clean();
         return $_ret_;
     } catch (Exception $e) {
         trigger_error("TPL_PROBLEM|NO SE QUE ONDA..." . $e->getMessage());
     }
 }