main
Robert 3 months ago
parent 27f2be377c
commit 7092a28400
  1. 5
      protected/src/controllers/app/home_ctrl.php

@ -46,9 +46,8 @@ class home_ctrl extends base_controller {
public function name_demo(): Response {
echo $this->footer;
$view = new \CodeHydrater\view();
$view->set('twig_data', ['name' => "John Doe"]);
$content = $view->fetch($this, "app/test", ViewType::TWIG);
$this->view->set('twig_data', ['name' => "John Doe"]);
$content = $this->view->fetch($this, "app/test", ViewType::TWIG);
$this->response->set_content($content);
return $this->response;

Loading…
Cancel
Save