Esempio n. 1
0
 public function actionFlight()
 {
     $report = new AmountOfFlightSearch();
     $model = ReportExecuter::run($report);
     $dataProvider = new EMongoDocumentDataProvider($model, array('keyField' => 'primaryKey', 'pagination' => array('pageSize' => self::PAGE_SIZE)));
     $this->render('flight', array('dataProvider' => $dataProvider));
 }
 public function actionDirectionsTo($cityId)
 {
     $report = new PopularityDirectionsCity($cityId, false);
     $model = ReportExecuter::run($report);
     $model->scenario = 'search';
     if (isset($_GET['PopularityDirectionsCityResult'])) {
         $model->attributes = $_GET['PopularityDirectionsCityResult'];
     }
     $this->render('directionsTo', array('model' => $model, 'report' => $report));
 }