public function actionContact() { $this->layout = 'main_without_container'; $models = Locality::find()->andWhere(['not', ['contact' => '']])->andWhere(['not', ['contact' => null]])->all(); return $this->render('contact', ['models' => $models]); }
/** * Lists all Locality models. * @return mixed */ public function actionAdmin() { $dataProvider = new ActiveDataProvider(['query' => Locality::find()]); return $this->render('admin', ['dataProvider' => $dataProvider]); }