-
-
Notifications
You must be signed in to change notification settings - Fork 44
Closed as not planned
Description
If I set a JSONP callback to my JSON view model, the returned mime type is application/json
instead of application/javascript
. This is due to the JsonStrategy which checks if the JsonRenderer has a JSONP callback to switch the mime type. But the JsonRenderer doesn't have a JSONP callback, only my view model has one.
As a workaround, I now set the callback to the renderer ($this->getServiceLocator()->get('ViewJsonRenderer')->setJsonpCallback($callback);
).
Originally posted by @rohm1 at zendframework/zend-view#41
villermen
Metadata
Metadata
Assignees
Labels
No labels