Thinkphp 3.2 Development process

Source: Internet
Author: User

http://blog.csdn.net/flyspace/article/details/36185061 
    1.   Set public configuration for all projects application\common\conf\config.php,sae mode configuration file is config_sae.php

      Configure default module [PHP]  view plaincopy 
      1. ' Default_ MODULE '      => 
      Configure modules that prohibit client access
      [PHP]  view plaincopy 
      1. ' module_deny_list '    =>  Array ( ' Common '),   

      SAE Configuration:
      Modify the Portal file index.php, Add
      [PHP]  view plaincopy 
        ' Storage_type ', ' SAE ');   
      1. Define (



    2. Create a project directory. Application\home and the project configuration directory home\conf, where the configuration automatically overrides the public configuration.

      Configure the view default theme style
      [PHP] view plaincopy
      1. ' Default_theme ' = ' DEFAULT ',


    3. Create an MVC structure

      Home\controller
      Home\view
      Home\view\default directory name depends on theme style settings



    4. Create a controller home\controller\indexcontroller.class.php

      [PHP]View Plaincopy
        1. <?php
        2. namespace Home\controller;
        3. Use Think\controller;
        4. Class Indexcontroller extends Controller
        5. {
        6. Public Function Index () {
        7. $this->display ();
        8. }
        9. }
        10. ?>


    5. Depending on the controller creation View directory Home\view\default\index, the directory name depends on the controller prefix Index.


    6. Create the interface file home\view\default\index\index.html, the file name depends on the controller corresponding function name, the controller implements the Index function by default.

Thinkphp 3.2 Development process

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.