Correct way to bypass cumbersome MVC logic
Hello,
I have a container that is present in every single view (namely a header that contains a clock).
I need this header to read 12h/24h time setting, and then draw time accordingly.
If I use Model-View-Controller, I must implement activate() method in every single Presenter to load this setting from Model, and implement "setTimeSetting()" in every single View, which will call the container "setTimeSetting()". This is a bit overkill, isn't it?
So instead of that, I just implement the function in FrontendApplication, and call it in the container only using application().getTimeSetting().
Is it appropriate to store a global variable in FrontendApplication instead, that the container reads directly? Am I missing something here, is there going to be problems with that?
To me, this seems to be easier approach in most cases, and less risk of typing errors when making lots of function calls between M-V-C objects.
Thanks!
