Home  >  Article  >  Backend Development  >  Can smarty also be used to write app interfaces?

Can smarty also be used to write app interfaces?

WBOY
WBOYOriginal
2016-08-04 09:19:431036browse

Looking at the ecshop code today, I found that many of the app interfaces use smarty to render the interface. I am very curious, aren’t the app interfaces written on the app side? Isn’t it just a matter of using json to transfer data? What is this for?

Reply content:

Looking at the ecshop code today, I found that many of the app interfaces use smarty to render the interface. I am very curious, aren’t the app interfaces written on the app side? Isn’t it just a matter of using json to transfer data? What is this for?

The front-end also has a template engine, and the back-end also has a template engine. As for the app you are talking about, is it a mobile app or something else?

Native App Development
Native App development is what we call the traditional APP development model (native APP development model). This development requires different languages ​​and frameworks for different mobile operating systems such as IOS and Android. This model is usually It consists of two parts: "cloud server data + APP application client". All UI elements, data content, and logical framework of the APP application are installed on the mobile terminal.
Web App Development
Web App development is a framework APP development model (HTML5 APP framework development model). This development has the advantage of cross-platform. This model usually consists of two parts: "HTML5 cloud website + APP application client" The APP application client only needs to install the framework part of the application, and the application data is retrieved from the cloud and presented to the mobile phone user every time the APP is opened.

Hybird, probably used to fill in the webview control

Maybe the pages in the APP have many webviews

The user will return directly to the interactive webpage after opening it

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn