Sometimes in order to better cater to the MVC design template engine comes out, sometimes I think the template is really very convenient. But when it comes to complex judgments, it's more annoying. such as Smarty in the foreach multiple nested and then have IF else variables and so on in the subsequent modification work (such as in a certain state should not display a certain data), to find and then modify the real trouble feel wasted a lot of time
Reply content:
Sometimes in order to better cater to the MVC design template engine comes out, sometimes I think the template is really very convenient. But when it comes to complex judgments, it's more annoying. such as Smarty in the foreach multiple nested and then have IF else variables and so on in the subsequent modification work (such as in a certain state should not display a certain data), to find and then modify the real trouble feel wasted a lot of time
Estimated because you are not familiar with, and Smarty grammar is really cumbersome, a lot of processing is actually can be implemented in the control layer, view only to do the display can be
Do you know MVVM and restful?