1 | <?php |
||
2 | |||
3 | namespace Widgets\Front\Test; |
||
4 | |||
5 | use Ffcms\Core\App; |
||
6 | use Ffcms\Core\Arch\View; |
||
7 | use Ffcms\Core\Arch\Widget as AbstractWidget; |
||
8 | |||
9 | class Widget extends AbstractWidget |
||
10 | { |
||
11 | public $message; |
||
12 | |||
13 | public function init() |
||
14 | { |
||
15 | if ($this->message === null) { |
||
16 | $this->message = 'Hello, world'; |
||
17 | } |
||
18 | } |
||
19 | |||
20 | public function display() |
||
21 | { |
||
22 | return App::$View->render('widget/test', null, __DIR__); |
||
0 ignored issues
–
show
Bug
introduced
by
Loading history...
|
|||
23 | } |
||
24 | } |
||
25 |