7 Feb 2012 3:24 AM #1
Ext.data.Store - api:grid grid
I have been trying to understand the url’s for example, CRUD – Create, Read, Update and Delete and why in the example (writer.js) they are attached to app.php/users/create......
For example I am using ColdFusion 9 and have a Ext store build with Ext designer that uses a function ‘convertQueryToExtJSGrid’ that takes the data from a MySQL table and coverts it to json to display in a grid.
I have been trying to read up on the subject although still can not fully understand how to link the CRUD operations. Do I have to create my own methods and then how do I attach then the the app.php/create?
Does anyone know of any simple examples that will walk me through how to Cerate, Read, Update and Destroy – so that I can take the value from a ext form and add it to my grid. I have a fair understanding of Extjs 4 and limit knowledge of php, in addition, why in some examples it shows Backend.php – is this an alterative?
7 Feb 2012 6:59 AM #2
- Join Date
- Mar 2007
- Gainesville, FL
- Vote Rating
The writer example is a fully working CRUD example. If you look at the requests, when you delete a record, it fires a call off to the URL in the api.destroy. Same for create, update and read.Mitchell Simoens @LikelyMitch
Sencha Inc, Senior Software Engineer
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services firstname.lastname@example.org
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!
When posting code, please use BBCode's CODE tags.