Issues

ZF-11564: ExtJS 4 REST proxy and Zend framework Zend_Rest_Route are incompatible

Description

Hi,

I find that ExtJS 4 REST proxy and Zend framework Zend_Rest_Route are incompatible. Basically, it is because Ext JS Rest proxy append base url with record ID. Therefore, it causes Zend Framework to route POST request to PUT action. I put detailed report in the following URL.

http://yiyujia.blogspot.com/2011/07/…

thanks and regards,

Yiyu Jia

Comments

This could be resolved in potentially two ways... 1. Create a custom Zend router that understands Extjs url format.

  1. Create a ExtJs Rest proxy that structures the url into the format that Zend requires by default. I have documented this second approach here: http://techfrere.blogspot.com/2011/08/…

Hope this helps...

Regards, Mark

Zend_Rest_Route should support http:/www.example.com/{module}/{controller}/{idvalue}

So is this making a POST request to a /{idvalue} URL to create a new resource, or append to an existing /{idvalue} resource?