The original Super simple PHP framework

Source: Internet
Author: User
Main ideas:
PHP is now widely used, and everyone is talking about OOP, MVC. I do not know these things very much, many places are not comprehensive, I hope you give correct.
This framework is also guided by MVC, using the OOP idea and adding some static caching methods.
Introduce several key documents:
Main.php is a core program that contains a simple URL route, and a database query data caching feature.
The instantiation of the model.php model
view.php a simple template engine
control.php Controller Navigation



Function Description:

1. Currently only supports MySQL database.
2. Controller name to have a certain rule, such as the file name is XX, then the class name must be Xxcontrol.
3.model name to have a certain rule, such as the file name is XX, then the class name must be Xxmodel.
4. Inheritance cannot be automatically identified, and if there is an inheritance operation, it is necessary to include the relevant files manually.
5. If it is in the Linux environment, \cache\ \template\cache \template\view\ to have read and write delete permission
  • 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.