I'm trying to create my server-side code for using Ext.Direct with ExtJS 4 and it seems like, to me, that RPC methods are static only?
I just mean, if I have a model "user" and wanted to add "user.getPermissions()" to interface with my server side method $user->getPermissions() is it possible that I could automatically pass $user->primaryKey?
In what I've managed to accomplish "getPermissions" becomes a class method (static method) of "user" instead of an object method that can include user model information.
So, I'm able to do something like this:
What I'd like to do instead, is this:
var Permissions = user.getPermissions( 100 ); // 100 is user id
Please let me know if this is possible.
var user = Ext.ModelMgr.getModel('user');
user.permissions = user.getPermissions(); // where certain information is
// included in the RPC