<?php
/**
 * Created by PhpStorm.
 * User:  NODELOG
 * Date: 16/7/1
 * Time: 下午12:00
 */

namespace plugins\donation;


class NavListener
{
    public static function handle($event)
    {
        //加到左边导航上
        $event->sender->params['leftMenuItems'][] = [
            'label' => '捐赠',
            'url' => ['/donation'],
            'active' => \Yii::$app->controller->getRoute() == 'donation/index'
        ];
    }
}