is the template code separation good or bad? What to do with it

Source: Internet
Author: User
is the template code separation good or bad???
There are many well-known frameworks on the Web, and the template-detached frame looks only thinkphp, and then I look at CodeIgniter, it also has a simple template separation, but the hand

The book says that this is not efficient, because to parse the template tag, so it is recommended that the PHP script, and then look at the Zend, cake and other frameworks, also

The design of the template separation is not the main structure. Listen to the views of the crowd

------Solution--------------------
The separation is of course good.

The ability to assign front-end and background personnel to work
Backstage just backstage, front just show, each does not affect, to later maintenance and so much more convenient.


Thinkphp has its own set of template languages, which are more convenient to output, and the front end shows both of these advantages.
CI is a template language of wood, using PHP native language, this can be subtracted from the template language parsing into PHP grammar process, the efficiency should be faster.

I personally prefer to use PHP native syntax ...
  • 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.