<?php

namespace app\components;

use app\models\Subscription;
use Yii;

/**
 * Description of FavMenuHelper
 *
 * @author charles
 */
class FavMenuHelper
{

    public static function getFavMenuItems()
    {
        $result = [
            [
                'label' => '我的收藏',
                'icon'  => 'fa fa-star',
                'url'   => ['/subscription/list'],
                'items' => [],
            ],
        ];

        $subscriptions = Subscription::findAll(['user_id' => Yii::$app->user->id]);
        foreach ($subscriptions as $s) {
            $result[0]['items'][] = [
                'label' => $s->report->name,
                'icon'  => 'fa fa-circle',
                'url'   => ['/report/view', 'id' => $s->report_id],
            ];
        }

        return $result;
    }
}

<?php

namespace app\components;

use app\models\Subscription;
use Yii;

/**
 * Description of FavMenuHelper
 *
 * @author charles
 */
class FavMenuHelper
{

    public static function getFavMenuItems()
    {
        $result = [
            [
                'label' => '我的收藏',
                'icon'  => 'star',
                'url'   => ['/subscription/list'],
                'items' => [],
            ],
        ];

        $subscriptions = Subscription::findAll(['user_id' => Yii::$app->user->id]);
        foreach ($subscriptions as $s) {
            $result[0]['items'][] = [
                'label' => $s->report->name,
                'icon'  => 'circle',
                'url'   => ['/report/view', 'id' => $s->report_id],
            ];
        }

        return $result;
    }
}

Fix the icons of menu.
Fix the icons of menu.
