I feel like using templates and Embedding php directly in html are inseparable.

Source: Internet
Author: User
I feel like using a template is similar to Embedding php directly in html. Is there a similar feeling like this? the template syntax is similar to php. ------ solution ------------------ the purpose of the template is to separate html and php code., this makes it easier for programmers and the front-end to maintain the balance between the front-end and the back-end. if you work with multiple people, the template will be useful to you. ------ solution-I feel like using templates is similar to Embedding php directly in html.
Do you feel this way?

The template syntax is similar to that of php.
------ Solution ----------------------
The purpose of the template is to separate html and php code so that programmers and the front-end can do their jobs separately.
Easy to maintain
The template is useless if you have both the front-end and back-end.
If you work with multiple people, the template will be useful to you.
------ Solution ----------------------
Multi-person development will be able to find superiority
------ Solution ----------------------
The advantage of team collaborative development is absolutely great.
------ Solution ----------------------
For software development principles: the initial design of loose coupling is also used to separate the work of designers and PHP programmers, and to separate PHP code and HTML/CSS display.

------ Solution ----------------------
The syntax is almost the same, but the template logic is better.
------ Solution ----------------------
You have a narrow understanding of the template. The template syntax is similar to the php syntax.Only one of the many Template engines
The advantage of using templates is that the business logic and display logic are separated.
In this way, you do not need to consider how to display the business logic. On the contrary, you do not need to consider how the data comes when designing the display logic.
Using the template engine does not matter how many people are involved in development.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.