Conditions | 2 |
Paths | 2 |
Total Lines | 16 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
64 | protected function renderView(string $title, string $content, ?string $header = null): HttpResponse |
||
65 | { |
||
66 | if (!$header) { |
||
67 | $header = $title; |
||
68 | } |
||
69 | |||
70 | $this->template = new Template($title); |
||
71 | $this->template->assign('header', $header); |
||
72 | $this->template->assign('content', $content); |
||
73 | |||
74 | ob_start(); |
||
75 | $this->template->display_one_col_template(); |
||
76 | $html = ob_get_contents(); |
||
77 | ob_end_clean(); |
||
78 | |||
79 | return HttpResponse::create($html); |
||
80 | } |
||
82 |