Affichage des articles dont le libellé est Data Proxy for CodeIgniter. Afficher tous les articles
Affichage des articles dont le libellé est Data Proxy for CodeIgniter. Afficher tous les articles

jeudi 20 novembre 2014

Data Proxy for CodeIgniter

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.

Here is the data proxy I use when working with CodeIgniter 2.2:


http://ift.tt/11I9Wnp


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