protected function serializeData($data) { return Yii::createObject($this->serializer)->serialize($data); }
protected function serializeData($data) { if ($this->jsonCallback) { $result['data'] = parent::serializeData($data); $result['callback'] = $this->jsonCallback; return $result; } return parent::serializeData($data); }