chachonen
4 May 2011, 10:12 AM
Hi, I'm new to Sencha and would like to ask what is "best practice" for handling application state. For example: in my app there are users who can log in and they may have or not a subscription and users with a valid subscription may do certain actions such as create a post or comment ... Users without a subscription may buy one. Annonymous users may register and list posts.
So my question is: would you create an app controller and let it handle the permission stuff, and from there call the actions on the other controllers? Would you create a sort of delegate and set it on the controllers and the delegate would then check the permissions? How are others handling this?
Thanks for any pointers
Henrik
So my question is: would you create an app controller and let it handle the permission stuff, and from there call the actions on the other controllers? Would you create a sort of delegate and set it on the controllers and the delegate would then check the permissions? How are others handling this?
Thanks for any pointers
Henrik