Home > Backend Development > PHP Tutorial > Smarty template engine video teaching material course recommendations

Smarty template engine video teaching material course recommendations

黄舟
Release: 2023-03-15 14:52:01
Original
1342 people have browsed it

"Smarty Template Engine" will show you how to achieve code separation. smarty is one of the most famous PHP template engines in the industry. It separates logical code and external content, providing an easy-to-manage and use method to separate PHP code logic that is originally mixed with HTML code. Simply put, the purpose is to separate PHP programmers from front-end personnel so that the work of the two will not affect each other!

Smarty template engine video teaching material course recommendations

Play address: http://www.php.cn/course/636.html

This video was recorded by a teacher from Boer Education Xiling. The teacher has his own famous saying and style: Pretending is the primary productive force. If you don’t like to pretense, how can you have the motivation to learn? Lecture style: vivid and vivid, explaining complex computer concepts clearly through common things in life. Humorous language, simple explanation, clear organization, layer-by-layer analysis, interlocking, rigorous argumentation, rigorous structure, using the logical power of thinking to attract people Students' attention!

Then the more difficult points in the main course are: MVC and smarty

samrty: The main implementation is the separation of m and v,
samrty is The compiled template engine has its own unique syntax,
rich samrty functions:

Template nesting, reading setting files, variable preprocessing. Conditional judgment, loop control
smarty_inc.php inherits the class of smarty, that is to say, it is an inheritance class.
In the future, this inheritance class will be used directly instead of the samrty class.
The reason is that if you want to modify a certain parameter in the future, You only need to modify the method in smarty-inc. There is no need to modify every file
To facilitate future maintenance

MVC: In the large-scale development process, if you only separate m and v In terms of development, it is still not enough.
Because the web presentation layer needs to implement various output data,
These codes are mainly in M. In the end, M will become very complicated, with many conditional judgments such as if. , this will reduce the readability and maintainability of the program
In order to solve this contradiction, c is introduced. c mainly controls when to call the method in m, processes the input and output data, and finally displays it in v
 
 mv: It is equivalent to the instinctive reaction of the human body and does not require brain processing. This is only suitable for simple development.
mvc:c is equivalent to the human brain. It can process the variables submitted by v. After being processed by c, it is submitted to m. In this way, it can handle more complex problems.
c can handle the more complex problems in the middle. Suitable for large-scale development

Here we provide you with video courseware download:http://www.php.cn/xiazai/code/2018

Courseware The following is about the process of learning Smarty template engine:

  1. Learning smarty

  2. Basic use

  3. Basic usage

  4. The problem of delimiter conflict

  5. Judgment, looping, operation

  6. Variables Features of regulators and template compilation

  7. The difference between display and fetch

  8. Cache

  9. ##Single Template multi-caching

  10. Partial caching

  11. The sorrow of template engine

  12. The relationship between MVC and smarty

What I have mentioned above is only part of the courseware. You can download the rest of the content locally and further study and use it!

The above is the detailed content of Smarty template engine video teaching material course recommendations. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template