public function run()
 {
     $dpLocations = WidgetConfig::findRelatedModels(self::WIDGET_NAME, $this->module, $this->id);
     if (!is_null($dpLocations)) {
         return $this->render('@frenzelgmbh/sblog/widgets/views/_mapwidget_renderer', ['dpLocations' => $dpLocations]);
     } else {
         return "";
     }
 }
예제 #2
0
 public function run()
 {
     $query = WidgetConfig::findRelatedRecords(self::WIDGET_NAME, $this->module, $this->id);
     $dpLocations = new ActiveDataProvider(array('query' => $query));
     return $this->render('@frenzelgmbh/sblog/widgets/views/_mapwidget', ['dpLocations' => $dpLocations, 'module' => $this->module, 'id' => $this->id]);
 }