The effect is as shown in the picture:
Entry file
<?php // 应用入口文件 // 检测PHP环境 if(version_compare(PHP_VERSION,'5.3.0','<')) die('require PHP > 5.3.0 !'); // 网站文件入口位置 define('ABSPATH', dirname(__FILE__) . '/'); // 定义应用目录 define('APP_NAME', 'WEBSITE'); define('APP_PATH','./include/'); define('CONF_PATH', ABSPATH . '/config/'); define('RUNTIME_PATH', ABSPATH . '/cache/'); define('TMPL_PATH', ABSPATH . '/templates/'); define('UPLOAD_PATH', ABSPATH . '/uploads/'); define('THINK_PATH', APP_PATH . '/ThinkPHP/'); // 开启调试模式 define('APP_DEBUG',True); // 引入ThinkPHP入口文件 require THINK_PATH . 'ThinkPHP.php';
Configuration file
<?php return array ( 'DEFAULT_MODULE' => 'APP', 'URL_MODEL' => '2', 'TMPL_PARSE_STRING'=> array( '__PUBLIC__' => __ROOT__.'/static', '__UPLOAD__' => __ROOT__.'/uploads' ), 'TMPL_FILE_DEPR' => '_', );
You will know after you try it yourself!
Common project public functions
Conf project settings
Lang language pack
Lib operation module
Runtime cache
Tpl template File
After decompression, put it into the system directory and set it to run in compatibility mode. Then, put the ORG class library package of the original system base class library into the new version of the base class library directory. Clear the project and compile what is the framework of php ThinkPHP again