params['notifications'] as $notification) { $count += $notification['count']; } return $this->render('notification-count', [ 'notifications' => \Yii::$app->params['notifications'], 'count' => $count, ]); } }