-
29 Mar 2012 11:23 AM #1
Integration for CakePHP
Integration for CakePHP
Hello!
You are looking for an easy way to retrieve data from your CakePHP backend into Sencha Touch?
Check out Bancha, it uses Senchas Ext.Direct spec to transmit data.
You can easily load complete model configurations and data, just by using Bancha.onModelReady('User', callback);
http://banchaproject.com
For general questions about Bancha visit the ExtJS Forum Post
best regards
Roland
PS: I know this is a cross-post, but I feel this should not only be mentioned in the ExtJS Forums since it also applies to Sencha Touch.
-
29 Mar 2012 11:44 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,641
- Vote Rating
- 434
Moved to Examples/Showcases forum
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
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 services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
26 Aug 2012 6:31 AM #3
Please what controller method SHould i use
Please what controller method SHould i use
Hi there, I am thankful for Bancha, Im learning how to use it. Please what method do i use to retrieve my exposed controller methods ?
Bancha.getStub('MyController').myMethod(param1,param2,callback);
OR
Bancha.RemoteStubs
Thank you.
-
26 Aug 2012 11:53 AM #4
Hello,
the preferred way is to use Bancha.getStub('MyController').myMethod(param1,param2,callback);
Where did you find the other one, so I can fix the documentation bug?
Thanks
RolandRoland Schütz
Senior Software Architect
---
Bancha Project - Seamless integrate CakePHP with ExtJS and Sencha Touch
-
26 Aug 2012 12:48 PM #5
Thank you for quick response, and Thank you for your hardwork. Also i want to say great work on your doucumentations and examples
In the controller-sample.js file, in the example
Please a couple more questionsCode:// create the button var button = Ext.create('Ext.button.Button', { text : 'Get Greetings', handler: function() { if(textfield.isValid()) { // send the request to the server var unixTimestamp = (Date.now()/1000).toString(); Bancha.RemoteStubs.Hello.getGreeting(unixTimestamp, textfield.getValue(),function(result) { // this is the result callback if(result.success) { log(result.data); } else { log("The server does not want to talk to you."); } });
return $this->User->saveFieldsAndReturn($this->request->data); // added
the saveFieldsAndReturn method, is that a custom method that comes with the Bancha plugin ?
Thank You.
-
26 Aug 2012 2:04 PM #6
Hello,
thanks for the information.
You are right, I forgot to explain that in the Documentation, I just added it:
https://github.com/Bancha/Bancha/wiki/Saving-records
Best regards
RolandRoland Schütz
Senior Software Architect
---
Bancha Project - Seamless integrate CakePHP with ExtJS and Sencha Touch


Reply With Quote