Beispiel #1
0
 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();
 }
Beispiel #3
0
 public function init()
 {
     parent::init();
     $this->new = Yii::$app->getModule('admin')->activeModules['feedback']->notice;
     $this->noAnswer = Feedback::find()->status(Feedback::STATUS_VIEW)->count();
 }
Beispiel #4
0
 public function init()
 {
     parent::init();
 }
Beispiel #5
0
 public function init()
 {
     parent::init();
     $this->new = Yii::$app->getModule('admin')->activeModules['guestbook']->notice;
     $this->noAnswer = Guestbook::find()->where(['answer' => ''])->count();
 }