Still no "User Extensions and Plugins" nor "Examples and Showcases" forums for Ext JS 5.x forums so I'm positing this in Q&A.
Note: It does not perform batch operations.
Data Proxy for CodeIgniter
Here is the data proxy I use when working with CodeIgniter 2.2:
It is an extension of Ext.data.proxy.Ajax with a CodeIgniter library for formatting results. Specifically:
- Sends data to CodeIgniter controllers in POST so CodeIgniter form validation library can be used
- Reads CodeIgniter error pages for descriptive error pop-ups rather than JSON decoding errors
- Catches JSON decoding exceptions
- Builds CodeIgniter URIs using CRUD operation actions or optional config parameters
- Automatically sends CSRF info with requests if CSRF protection is enabled
- Includes CodeIgniter library functions for formatting/transmitting data to Ext JS applications
Note: It does not perform batch operations.
There is a demo here: http://ift.tt/11A0xxc
All source for demo available here: http://ift.tt/11A0xxf
Any feedback is welcome!
Data Proxy for CodeIgniter
Aucun commentaire:
Enregistrer un commentaire