What is SMARTY, and the confusion of index structure planning?

Source: Internet
Author: User
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

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.