Ejemplo n.º 1
0
 /**
  *  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]);
 }
Ejemplo n.º 3
0
 public function getAppsList()
 {
     $searchModel = new AppsSearch();
     $appsList = $searchModel->find()->where(['active' => true])->all();
     return $appsList;
 }