What is SMARTY, and the confusion of directory structure planning! Brother, I have been working on a project recently. I have made full Directory planning in advance. When I met SMARTY, I hesitated. I have three directories. I don't know how this guy works. 1. Component & nbsp; what is SMARTY, and confusion about Directory structure planning!
Brother, I have been working on a project recently. I have made full Directory planning in advance.
When I met SMARTY, I hesitated.
I have three directories. I don't know how this guy works.
1. the component feels more like this
2. plug-ins do not seem to be
3. the class library seems to be.
What is SMARTY.
------ Solution --------------------
Reference:
Reference:
Template ~~~
Of course, I know that SMARTY is a template engine.
.. Where do you want to put the smarty class library?
------ Solution --------------------
What is the positioning of smarty in your design?
For example 2, you think it may not be, or you can also use it as a plug-in. in some cases, I have the next hook. in this case, enable smarty to parse the pages I need.
------ Solution --------------------
I usually put the "3rd-party class library" under "Class Library"
"Component", this concept seems to be unnecessary in php.
"Plug-ins" are usually used for plug-ins, and cannot be used in other places. It can also be used in other places when smarty is pulled out ....
------ Solution --------------------
3. the class library seems to be.
For projects, smarty is an external public class library
While
1. the component feels more like this
2. plug-ins do not seem to be
The project is specific and pluggable. other projects may be unavailable and have specific interface definitions, unless the component and plug-in are a common
------ Solution --------------------
Class library, I feel hungry