/** * Renders & returns a template file. * * @param string $tpl * @param array $data * @return string */ function get_render($tpl, $data = array()) { $tpl = HOOKR_PLUGIN_DIR . DS . 'tpl' . DS . $tpl; return parent::get_render($tpl, $data); }
/** * Renders & returns a template file. * * @param string $tpl * @param array $data * @return string */ function get_render($tpl, $data = array()) { ob_start(); $tpl = HOOKR_PLUGIN_DIR . DS . 'tpl' . DS . $tpl; parent::get_render($tpl, $data); return ob_get_clean(); }