render() 보호된 메소드

Renders a template
protected render ( string $template, array $context = [], array $globals = [] ) : TemplateResponse
$template string Template name
$context array Context variables
$globals array Global variables
리턴 Bolt\Response\TemplateResponse
예제 #1
0
 /**
  * {@inheritdoc}
  */
 protected function render($template, array $variables = [], array $globals = [])
 {
     if (!isset($variables['context'])) {
         $variables = ['context' => $variables];
     }
     return parent::render($template, $variables, $globals);
 }
예제 #2
0
파일: BackendBase.php 프로젝트: bolt/bolt
 /**
  * {@inheritdoc}
  */
 protected function render($template, array $context = [], array $globals = [])
 {
     if (!isset($context['context'])) {
         $context = ['context' => $context];
     }
     return parent::render($template, $context, $globals);
 }