Smarty template is it necessary to learn??

Source: Internet
Author: User
Keywords Php smarty
Tags php template smarty template
Got two days of Ecshop, also contacted some smarty template, oneself did not learn smarty, but in Ecshop used, do not know, the current trend, still need to learn smarty??

Reply content:

Got two days of Ecshop, also contacted some smarty template, oneself did not learn smarty, but in Ecshop used, do not know, the current trend, still need to learn smarty??

If it is the work of the project code to use, more look at other code is good, do not need to deliberately read the document learning;

Other information?完!全!不!需!要!去!学!习!

1.PHP itself is the best template language;
2. Try to learn angular or React, and you find that you don't want to see any PHP code in the template anymore;

If the work requires, of course, it is necessary to learn! Moreover, the template engine is not difficult to learn.

If you simply look at the trend of the PHP template engine, you can focus on twig, the best php template engine at the current level!

What does learning mean 研究源码 or 学会使用 ?

Research can be. If you use it, you can learn how to use it when you need it. With so many techniques, it is impossible to learn in advance.

is smarty the first template you encounter in your life? It's my first one anyway. When you use the Thinkphp,laravel, you will find a better template for you to choose, you will slowly find the appropriate template, you will find that most of the original template is similar, take a few minutes to understand the general grammar specification is written or very fast. This way, there is no need to specifically for a template to learn the template, should be based on your current production environment to choose. Of course, Nodejs in the template language is similar.

Does not advocate, now generally will take the practice of front-end separation, but the development of the background template engine is relatively fast

You can try Python's flask framework, simple exceptions

If it is a work need, must be familiar with, the current maintenance of a system is based on Smarty.
Of course there are still a lot of template engine, the company used Twig and Vuejs, of course, there are react.

Can learn, but not necessary

Smarty itself is too much to use, but learning is another matter
You can learn the idea of this development model and then compare it with other development patterns that you touch, thereby improving your

There is absolutely no need. PHP itself is a very good template engine. Why do we have to encapsulate it? Some say, in order to make the front paragraph look more comfortable. I want to say that the front end looks more comfortable, But they still have to learn the language of a template engine. But if you learn the native PHP template engine. Then use this one later on OK. There are so many things.
In general, using the soundtrack is best.
It's gone.

Agree to the above, the practice proves that writing templates directly with PHP is the best practice

Can look at, understand the principle of the template, the real use of the API for the use of the good

There is no need to deliberately learn it, it should not be used much, many frameworks have their own template, the template principle is similar, when needed, casually understand the template how to render the data, template if else how to use, foreach how to use, generally enough.

After ten years of programming, only in Ecshop used smarty, so I think there is no need to learn, unless you use the schema already contains it. PHP is also a template language, can be mixed with HTML, so the PHP template engine has always been a bit of a chicken.

After a while to learn the other there is a concept, this template is suitable for beginners, I began to learn this, and then learn the framework, the framework has its own template, and the usage is simpler than this, such as the template in Laravel is very simple syntax. The thinkphp is similar to the smarty, as if it were smarty.

If you want to use PHP template, preferred twig, the above has been recommended. Upstairs, thinkphp has been the template engine of his own, never used Smarty

As the most widely used PHP template engine, Smarty has the perfect function, can support a variety of complex scenes, because of the age, the code is somewhat complex, there are now many template engines, such as Think,twig,blade. If you get started, learning Smarty is not a bad idea.

  • 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.