get_render() 공개 메소드

Returns the contents of a rendered template.
또한 보기: self::render()
public get_render ( string $tpl, array $data = [] ) : string
$tpl string
$data array
리턴 string
예제 #1
0
 /**
  * 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);
 }
예제 #2
0
 /**
  * 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();
 }