What is the difference between frame and smarty?
Some people say that Smarty is the frame, I feel strange.
Friends, help explain the explanation. Thank you!
------Solution--------------------
Smarty It's not a PHP framework, it's just a template. CI This type of only belongs to the framework.
------Solution--------------------
Smarty is a template
------Solution--------------------
The frame is like the foundation of a building, no matter how the building is built, the method of building the foundation is always similar.
In our program development process, you will find that each program has a lot of similar things and reusable things, if you after each project to accumulate these similar things, then the code can be called a library, when the library is more and more powerful, even the program structure can be reused, You can call him a frame.
Template engine, you can understand into the construction team brush paint, they are professional brush paint, cover the building without tube paint how to brush, brush paint is not concerned about how the building is covered.
In fact, the main role of the template engine is to separate the logic and display, initially may be to allow programmers and artists to better cooperate, since the beginner, I think you will often write PHP code and HTML together, you can understand, but the art does not necessarily understand, They may only be able to read HTML and CSS, and also say that if the artist in the mixed code add complex CSS or JS you will not understand, so that the development of the program has brought great difficulties. So there is the template engine, it separates the logic and display completely, the programmer only need to focus on logic, at the end of the program to prepare the data and then passed to the template, and the artist just modify the template without the need to consider the program logic, template technology in team development is often used
------Solution--------------------
Template engine to translate the template into PHP files.
Now feel better to use PHP this tag directly
My framework is to use the tags of PHP's original body
Alternative syntax for Process Control
PHP provides some alternative syntax for process control, including If,while,for,foreach and switch. The basic form of substitution syntax is to replace the left curly brace ({) with a colon (:) and the right curly brace (}) into Endif;,endwhile;,endfor;,endforeach; and Endswitch;.
queryphp Simple MVC ORM Framework
---------------------------------------------
Http://topic.csdn.net/u/20100310/11/62a60067-b3da-4dee-9d6a-f1baeb2f3f33.html
------Solution--------------------
What is the definition of frame (framework)?
--Wikipedia--
A framework is a basic conceptual structure used to solve or address complex issues, usually a set of tools, materials or Components.
Well, of course, Smarty can count.
------Solution--------------------
The frame is like a cornerstone, and Smarty is like a building decoration.
------Solution--------------------
Explore
The frame is like the foundation of a building, no matter how the building is built, the method of building the foundation is always similar.
In our program development process, you will find that each program has a lot of similar things and reusable things, if you after each project to accumulate these similar things, then the code can be called a library, when the library is more and more powerful, even the program structure can be reused, You can call him a frame.
Template engine, you can understand into the construction team brush paint, they are professional brush paint, cover the building without tube paint how to brush, brush paint is not concerned about how the building is covered.
In fact, the main role of the template engine is to separate the logic and display, initially may be to allow programmers and artists to better cooperate, since the beginner, I think you will often write PHP code and HTML together, you can understand, but the art does not necessarily understand, They may only be able to read HTML and CSS, and also say that if the artist in the mixed code add complex CSS or JS you will not understand, so that the development of the program has brought great difficulties. So there is the template engine, it separates the logic and display completely, the programmer only need to focus on logic, at the end of the program to prepare the data and then passed to the template, and the artist just modify the template without the need to consider the program logic, template technology in team development is often used
------Solution--------------------
In fact, Smarty is also a framework. Just not pure!
------Solution--------------------
Smarty very pure template, many frameworks are used Smarty template, but he is not a template
------Solution--------------------
Smarty is a template engine, and it hasn't been ~~~~~~~~~.
------Solution--------------------
Smarty is the template Zend is the framework
------Solution--------------------
Smarty is just a template engine!!
------Solution--------------------
Smarty is the separation of programs and templates,
The framework not only provides an MVC environment, but also brings a lot of convenience to programmers, and my idea is this.
------Solution--------------------
Smarty is just a template system, what you do not understand later to the wiki.
------Solution--------------------
discuss
Some people say that Smarty is the frame, I feel strange.
Friends, help explain the explanation. Thank you!
------Solution--------------------
I don't know...
------Solution--------------------
Explore
Smarty is the separation of programs and templates, the
Framework not only provides an MVC environment, but also gives programmers a lot of convenience, my idea is this.
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.