diff options
Diffstat (limited to 'plugins/ExamplePlugin/Widgets/MyExampleWidget.php')
-rw-r--r-- | plugins/ExamplePlugin/Widgets/MyExampleWidget.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/ExamplePlugin/Widgets/MyExampleWidget.php b/plugins/ExamplePlugin/Widgets/MyExampleWidget.php index 3434a3aac9..2ca69752d8 100644 --- a/plugins/ExamplePlugin/Widgets/MyExampleWidget.php +++ b/plugins/ExamplePlugin/Widgets/MyExampleWidget.php @@ -71,10 +71,9 @@ class MyExampleWidget extends Widget */ public function render() { - // $view = new View('@ExamplePlugin/myViewTemplate'); - // return $view->render(); + // or: return $this->renderTemplate('myViewTemplate', array(...view variables...)); - return '<div>My Widget Text</div>'; + return '<div class="widgetBody">My Widget Text</div>'; } }
\ No newline at end of file |