MinPHP-lightweight PHP Framework-php Tutorial

Source: Internet
Author: User
MinPHP-lightweight PHP Framework github Download: https://github.com/phillipsdata/minphp


Source: http://my.oschina.net/rain21/blog/477931



Structure:

/app    /controllers    - where all controllers are to be placed    /models         - where all models are to be placed    /views          - where all views are to be placed        /default    - a collection of related display components            /css            /images            /javascript/cache              - where cached views are stored (must be writable to use)/components         - where components are placed/config             - where configuration files are to be stored/helpers            - where all helpers are located/language           - each language has its own directory in here    /en_us          - the default language directory/lib                - where all core minPHP files are located/plugins            - where all minPHP plugins are stored/vendors            - where vendor code is placed (i.e. third party libraries)


Database query:

First configure config/database. php

 select()->from("user")->where("id", "=", 1)->numResults();$rs=$user->select()->from("user")->fetchAll();print_r($rs);}//showpublic function show(){echo date('Y-m-d H:i:s',time());return false;}}?>

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.