Example #1
0
 public function actionMy()
 {
     $searchModel = new ApartmentSearch();
     $r = Yii::$app->request->queryParams;
     $r['ApartmentSearch']['like'] = 1;
     $dataProvider = $searchModel->search($r);
     //        var_dump($dataProvider-)
     //
     return $this->render('my', ['searchModel' => $searchModel, 'dataProvider' => $dataProvider]);
 }
Example #2
0
File: Query.php Project: myorb/alox
 public function getToday()
 {
     //        return Apartment::find([['author_id', $this->author_id],['query_id', $this->id]])->count();
     return ApartmentSearch::count($this->id);
     //        $this->getDb()->executeCommand('');
 }