thinkPHP3.2.3 Frame

Source: Internet
Author: User

3.2.3 Development Documentation Https://pan.baidu.com/disk/home?errno=0&errmsg=Auth%20Login%20Sucess&&bduss=&ssnerror =0#list/vmode=list&path=%2fsoftware%2fphp%2fphp_framework

"1". Import thinkphp3.2.3, create a new project

  1. Open index.php file (index.php file is the default foreground entry file)

    Detecting PHP environments

    if (Version_compare (php_version, ' 5.3.0 ', ' < ') die (' Require PHP > 5.3.0! ');

    Open Debug mode suggest the development phase to open the deployment phase comment or set to False

    Define (' App_debug ', True);

    Defining the App Catalog

    Define (' App_path ', './application/');

    Introducing the thinkphp entry file

    Require './thinkphp/thinkphp.php ';

    There's no code behind the pro ^_^, it's so simple.

  2. Add the portal definition file you need (below is the author's own preference)

    Defining the Run-time catalog

    Define (' Runtime_path ', './runtime/');

    Define the path to a static page

    Define (' Html_path ', './html/');

    Defining the App Catalog

    Define (' App_path ', './app/');

    Define the app catalog to change the theme of using your own items (author changes to app)

    Defining default Modules

    Define (' Bind_module ', ' Home ');

    index.php is defined as home by default, and can be changed arbitrarily

  3. Run project, browser input http://localhost/text/, project run successfully, thinkphp default page "Welcome to Thinkphp! "

  4. View project directory, F5 refresh, app for foreground app directory, home for front module name, common as Project Profile directory

  5. Copy the index.php file, rename it to admin.php, (admin.php is the project background default entry file) index.php and admin.php in the same level directory,

  6. Open admin.php File modification

    Defining default Modules

    Define (' Bind_module ', ' Home ');

    For

    Defining default Modules

    Define (' Bind_module ', ' Admin ');

  7. Run project, browser input http://localhost/text/admin.php, project run successfully, thinkphp default page "Welcome to thinkphp! ”

  8. View project directory, F5 refresh, app for foreground, background app directory, home for front module name, common for foreground, background project Public Profile directory, admin for background module

  9. Here thinkphp Project foreground background entrance file running successfully created, the following in front of the background to implement the required functions

    "2" Framework directory file parsing

    Common public functions that store the current project

    Conf the configuration function that holds the current project

    Lang stores the project language pack for the current project

    Lib holds the controller and model for the current project

    Runtime to store the current project's run-time files

    TPL holds the template file for the current project

    MC LIb

    V TPL

    Additional

    Upload File Upload

    Page pagination of

    Image

    Plugins plugin online compiler

    The Core reads the data the foreground also uses in the backstage also uses the different operation business layer operation

    Configs configuration file

thinkPHP3.2.3 Frame

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.