For the templates provided by ecmall, many users may know that there are still many functions that cannot be implemented at all. Basically, it is not as powerful as Smarty, but I have tried to introduce smarty but it is not very successful. The reason is that the ecmall template is not simply a template, however, many other business logic is included in the parsing. Therefore,
For the templates provided by ecmall, many users may know that there are still many functions that cannot be implemented at all. Basically, it is not as powerful as Smarty, but I have tried to introduce smarty but it is not very successful. The reason is that the ecmall template is not simply a template, however, many other business logic is included in the parsing. Therefore,
For the templates provided by ecmall, many users may know that there are still many functions that cannot be implemented at all. Basically, it is not as powerful as Smarty, but I have tried to introduce smarty but it is not very successful. The reason is that the ecmall template is not simply a template, however, many other business logics are included in the parsing process. Therefore, the template of ecmall is replaced by smarty directly, which may cause great problems in the development of widgets.
Therefore, for the sake of flexibility, I have added two methods to the parsing class in the ecmall template, one is to directly solve the php code, php code can be directly written in the template. The second is custom function parsing. During the parsing of the ecmall template, the parsing of user-defined functions is added.
Zhuo Stream Application Network (http://www.360cd.cn/)-Professional Secondary Development of ecmall <无>
{Php} $ shopArea_app = new ShopArea (); $ shopArea_app-> debug (); {/php} The main function here is to directly use {function func = cut_str source = $ shop_area.name length = 200} to produce the value of {$ shop_area.name }. intercept {foreach from = $ shopArea_list item = s} {function func = cut_str source = $ s. name length = 200} {/foreach}