Hi,
I'm busy with my first PureMVC application and I have difficulties with modeling my data. I'm modifying the Login example using WebOrb to get started. In that example, an ApplicationProxy is used that stores the current state of the application in a local variable. It provides get/set functions to access the state.
1. Is it a good idea to use the ApplicationProxy to store the current language (English, German etc.) as well? Or is it wise to have a LanguageProxy that holds all possible languages and keeps track of the current language?
2. Furthermore, I don't fully understand the data object in proxies. Why can't you use public variables (or getter and setter functions) in proxies?
Thanks. Hope someone can help me with these basic questions.
Eugene
|