pulsarvp/vps-tools

View on GitHub
src/modules/notification/widgets/NotificationWidget.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php
    namespace vps\tools\modules\notification\widgets;

    use yii\base\Widget;
    use yii\web\View;

    class NotificationWidget extends Widget
    {
        /**
         * @inheritdoc
         */
        public function init ()
        {
            parent::init();
            $this->view = new View([
                'renderers' => [
                    'tpl' => [
                        'class' => 'yii\smarty\ViewRenderer'
                    ]
                ]
            ]);
        }

        /**
         * @inheritdoc
         */
        public function run ()
        {
            return $this->renderFile(__DIR__ . '/../views/index.tpl');
        }
    }