[Go] micro-engine MVC

Source: Internet
Author: User

This article transferred from: https://www.kancloud.cn/donknap/we7/134626

Controller

The controller is organized in folders, files, in the system's source directory, each directory represents a controller, each file in the folder is an action.

In some cases, an action may contain more than one action, and a do parameter is provided in the system to distinguish between different actions in the same action.

For example: The Http://pro.we7.cc/web/index.php?c=extension&a=module&do=designer address indicates that the extension is the controller, the module is the action, Designer for a specific do under the action

Model

The model of the system is located in the Framework/model directory, where each file represents a separate functional model, and the model usually corresponds to the controller. Load the model with the load () function available

Template

The system template is located in [web|app]/themes/default/, template file and controller, action corresponds, the system provides a simple template engine mechanism, refer to the template engine

[Go] micro-engine MVC

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.