Great Stuff with the new release.. though me being a noob, ive run into a few issues..
I have a Model 'User', but Bancha seems to be trying to get UserController->view instead of UsersController->view
Uncaught Ext.Error: Bancha: Tried to call User.read(...), but the server-side has not implemented UserController->view or index(...) ext-all-dev.js:8712
changing it from Bancha.onModelReady('User') to Bancha.onModelReady('Users') seems to make it go away.
also, my app is hosted in a sub-dir, and not the webroot. ive changed all the paths accordingly but i get the following error:
I have a Model 'User', but Bancha seems to be trying to get UserController->view instead of UsersController->view
We are using the standard ext and cake conventions. So the cake model name is singular, the controller name plural with "Controller" suffix.
In our example implementation we also have a user model, the model name is "User", the controller "UsersController", the ExtJS model name "User".
The error must be somewhere else.
Originally Posted by klander
Uncaught Ext.Error: Bancha: Tried to call User.read(...), but the server-side has not implemented UserController->view or index(...) ext-all-dev.js:8712
Ok, so here the error message is wrong, it should be in plural.. but the dispatcher is definitely looking for UsersController!
Originally Posted by klander
changing it from Bancha.onModelReady('User') to Bancha.onModelReady('Users') seems to make it go away.
--> if (el.insertAdjacentHTML) { ext-all-dev.js (line 11856)
"You're trying to decode an invalid JSON String":
sourceClass "Ext.JSON"
sourceMethod "decode"
Is it somewhere online so I can test it? Otherwise, can you please post the value of /bancha/bancha-api.js and of the last xhr, which created the error.
So using the revised BanchaController.php, It gives me an "You're trying to decode an invalid JSON String:" when loading the page. So it does not load the grid panel. However, it appears to be receiving the JSON data as you can see here in my browser error log: http://pastebin.com/gRgMm59p
I dont seem to have a /bancha/bancha-api.js anywhere in my app. Could this be the problem?
A minor thing is it tries to pull http://localhost/img/icons/delete.png even though ive set it to icon: '/bancha/img/icons/delete.png' in bancha/app/webroot/js/Bancha.js. I was not able to find this setting in any other file so i got around it temporarily by coping the /img/ directory to my DocumentRoot.
Otherwise all CRUD functions work perfectly now
Thanks again for your help! I'm really looking forward to seeing this project mature. Big fan!