一、入口文件
ThinkPHP采用单一入口模式进行项目部署和访问
入口文件代码
<?php
define('APP_DEBUG',TRUE);//打开调试模式 在生产环境中应该关闭
define('APP_NAME', 'cms');//定影项目的名称
define('CONF_PATH','./Data/Conf/');//定义配置文件的目录
define('RUNTIME_PATH','./data/logs/');//定义缓存的目录
define('TMPL_PATH','./Theme/');//定义模板的路径和名称
define('APP_PATH','./Cms/');//定义项目的路径
define('CORE','./_core');//定义Thinkphp核心包的路径
require(CORE.'/ThinkPHP.php');//引入文件
?>
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAjcAAACWCAIAAACtlT6bAAAgAElEQVR4nO3d51cbab4n8P6jxntOv9g92+12+87Z2XPvrt1huu/M9NxuHNrtnANecCCDSSbZ5GAQIIGEiEIiRyUkUM4q5VClVMpiX4hQgMA9bQOF9fucOnNsBrf15amnvnoeleTPYgAAAABZfXbcDwAAAADYF7QUAAAA8oKWAgAAQF7QUgAAAMgLWgoAAAB5QUsBAAAgr4/fUj7HglrYajcsBr2WSMgfjUY/+l9BBgHHglLYajcsBL0miHnS+e0LSkGrw7AQ9JkiIX8s9mnGTJPRBJ+Yj99SYWwyYOvijlwQsK/rVgod6jcec3/AuRDE5GGfMRLCIpHIR/9Lj14y5vLQZT77tm6lCGKeaGF0KmCncIcvC9i39aIip7rOa6bjroUgJk3GjH4aMdNjNMEn5hBayj2V8DFjHoZi4Ql/7JJs7pqBf8Muve9WZXn0rzBDrcfY4LcwcZQb8khDHnU44IidwLmxHXMxj8fKks5mGYVPbZL7btVTj74EM9R4jPV+C30zphJiklnYNZnwD8a8A4rFPP54tnQuyyjMsm/G9CK1XmNDwMoMotyQVxr0qMIBRyx2AmOmx2iCT8xhtNRkwjeQ8FET+BgiLuEO/SJmZ6gWrppEd52KTFT93KPL9eoLfcZXPlNVwNqC27t8ZgruGAuiyyHvahBThP2WSNgfjZJ6ehBjGteqF0ezeeNPJTNPTWuFTmWxW/kc0+Z49QU+Y4nP9DpgbcbtnT5zFy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LAQAAIC9oKQAAAOQFLQUAAIC8oKUAAACQF7QUAAAA8oKWAgAAQF7QUgAAAMgLWgoAAAB5QUsBAAAgL2gpAAAA5AUtBQAAgLygpQAAAJAXtBQAAADygpYCAABAXtBSAAAAyAtaCgAAAHlBSwEAACAvaCkAAADkBS0FAACAvKClAAAAkBe0FAAAAPKClgIAAEBe0FIAAADIC1oKAAAAeUFLAQAAIC9oKQAAAOQFLQUAAIC8oKUAAACQF7QUAAAA8oKWAgAAQF7QUgAAAMgLWgoAAAB5QUsBAAAgL2gpAAAA5AUtBQAAgLygpQAAAJAXtBQAAADygpYCAABAXtBSAAAAyAtaCgAAAHlBSwEAACAvaCkAAADkBS0FAACAvKClAAAAkBe0FAAAAPKClgIAAEBe0FIAAADIC1oKAAAAeUFLAQAAIC9oKQAAAOQFLQUAAIC8oKUAAACQF7QUAAAA8oKWAgAAQF7QUgAAAMgLWgoAAAB5QUsBAAAgL2gpAAAA5AUtBQAAgLygpQAAAJAXtBQAAADygpYCAABAXtBSAAAAyAtaCgAAAHlBSwEAACAvaCkAAADkBS0FAACAvKClAAAAkBe0FAAAAPKClgIAAEBe0FIAAADIC1oKAAAAeUFLAQAAIC9oKQAAAOT1/wGz1sxExZuZKAAAAABJRU5ErkJggg==" alt="" />
二、配置文件data/conf/config.php db.php,cache.php
配置格式config.php
<?php return array(
'LOAD_EXT_CONFIG' => 'db,cache', //拓展配置
'COOKIE_PATH' => '/', // Cookie路径
'COOKIE_PREFIX' => '', // Cookie前缀 避免冲突
'TMPL_L_DELIM' =>'{', //模板引擎普通标签开始标记
'TMPL_R_DELIM' =>'}',
' APP_STATUS' => 'debug', //debug模式
)
?>
db.php
<?php
return array (
'DB_TYPE' => 'mysql',//数据库类型 如mysql mssql oracle mongodb等
'DB_HOST' => 'localhost',//主机名
'DB_PORT' => '3306',//端口号 默认3306
'DB_NAME' => 'cms',//数据库
'DB_USER' => 'root',//数据库用户名
'DB_PWD' => '123456',//数据库密码
'DB_PREFIX' => 'cms_',//表前缀,
//第二种dsn的配置方法
'DB_DSN' => 'mysql://root:123456@localhost:3306/cms',
);
?>
cache.php
<?php return array(
/*缓存定义*/
'DATA_CACHE_TYPE' => 'File', //缓存类型
'DATA_CACHE_COMPRESS' => true, // 数据缓存是否压缩缓存
'DATA_CACHE_SUBDIR' => true, // 使用子目录缓存 (自动根据缓存标识的哈希创建子目录)
'DATA_PATH_LEVEL' => 2, // 子目录缓存级别
'HTML_CACHE_ON' => false, //是否开启静态缓存
//'HTML_CACHE_RULES' =>array('*'=>array('{$_SERVER.REQUEST_URI|md5}')), //静态缓存规则
'HTML_CACHE_TIME' => 60, //静态缓存有效期(秒)
'HTML_FILE_SUFFIX' =>'.html', //静态缓存后缀
);