http://blog.csdn.net/flyspace/article/details/36185061
- 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
- ' Default_ MODULE ' =>
Configure modules that prohibit client access
[PHP] view plaincopy
- ' module_deny_list ' => Array ( ' Common '),
SAE Configuration:
Modify the Portal file index.php, Add
[PHP] view plaincopy
' Storage_type ', ' SAE ');
- Define (
- 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
- ' Default_theme ' = ' DEFAULT ',
- Create an MVC structure
Home\controller
Home\view
Home\view\default directory name depends on theme style settings
- Create a controller home\controller\indexcontroller.class.php
[PHP]View Plaincopy
- <?php
- namespace Home\controller;
- Use Think\controller;
- Class Indexcontroller extends Controller
- {
- Public Function Index () {
- $this->display ();
- }
- }
- ?>
- Depending on the controller creation View directory Home\view\default\index, the directory name depends on the controller prefix Index.
- 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