/** * Check application activation * @return boolean */ public function checkActive() { $searchModel = new AppsSearch(); if ($searchModel->find()->where(['name' => 'recipes', 'active' => true])->one()) { return true; } }
public function actionIndex() { $searchModel = new AppsSearch(); $applications = $searchModel->find()->where(['active' => true])->all(); return $this->render('index', ['applications' => $applications]); }
public function getAppsList() { $searchModel = new AppsSearch(); $appsList = $searchModel->find()->where(['active' => true])->all(); return $appsList; }