public function init() { parent::init(); $this->pending = Order::find()->status(Order::STATUS_PENDING)->count(); $this->processed = Order::find()->status(Order::STATUS_PROCESSED)->count(); $this->sent = Order::find()->status(Order::STATUS_SENT)->count(); }
public function init() { parent::init(); $moduleName = FeedbackModule::getModuleName(FeedbackModule::className()); $this->new = Yii::$app->getModule('admin')->activeModules[$moduleName]->notice; $this->noAnswer = Feedback::find()->status(Feedback::STATUS_VIEW)->count(); }
public function init() { parent::init(); $this->new = Yii::$app->getModule('admin')->activeModules['feedback']->notice; $this->noAnswer = Feedback::find()->status(Feedback::STATUS_VIEW)->count(); }
public function init() { parent::init(); }
public function init() { parent::init(); $this->new = Yii::$app->getModule('admin')->activeModules['guestbook']->notice; $this->noAnswer = Guestbook::find()->where(['answer' => ''])->count(); }