blob: 9c82956e63ca74bb55ab510d438b4aa520c8ac4b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
<?php /* Copyright (c) 2024 Freya Murphy */
class _template_controller extends XSS_Controller {
public function toast(): void {
$msg = $this->get_string('msg') ?? '';
$detail = $this->get_string('detail');
$hint = $this->get_string('hint');
$type = $this->get_string('type', 'error');
$data = array(
'msg' => $msg,
'detail' => $detail,
'hint' => $hint,
'type' => $type,
);
$this->view('_template/toast', $data);
}
}
|