Пример #1
0
 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]);
 }
Пример #2
0
 /**
  * Lists all Locality models.
  * @return mixed
  */
 public function actionAdmin()
 {
     $dataProvider = new ActiveDataProvider(['query' => Locality::find()]);
     return $this->render('admin', ['dataProvider' => $dataProvider]);
 }