The second module development-php based on micro-engine

Source: Internet
Author: User
Tags php programming

From a strange to now can reluctantly complete the first micro-site module implementation. is a small step forward, from design database to, return data, front-end template rendering

Each point is a bit difficult. So I want to summarize how I implemented a micro-module.

First, we must first analyze a module to achieve what needs, according to the requirements of the design of a reasonable database structure.

Second, understand the structure of the micro-engine, run the process, design the module structure.

Third, the focus is site.php, complete site.php need a certain PHP programming ability,

IV, site.php which obtains from the database via PDO we want the data source. The micro-engine has encapsulated its routing mechanism, Doweb points to the website, and Domobile points to the end.

Using a template mechanism that is encapsulated by the micro-engine. I may have been more simplistic in my present talk.

January 3, 2017

The second module development-php based on micro-engine

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.