Beispiel #1
0
 /**
  * Add template part to the stack.
  *
  * @param string $path Path to the template, relative to the path you provided in the configuration.
  * @param array $data Data to pass.
  * @param string|null $engine Engine, leave null to use default one in config.
  *
  * @return Builder
  */
 public function template($path, $data = array(), $engine = null)
 {
     $view = new View($path, View::PART_TEMPLATE, $engine);
     $view->setData($data);
     $this->render->add($view);
     return $this;
 }