public function run() { $notifications = Notifier::get_notifications(\Yii::$app->user->getId()); $this->register(); return $this->render('notification', ['notifications' => $notifications, 'count' => count($notifications)]); }
public function actionIndex() { return Notifier::get_notifications(Yii::$app->user->getId()); }