You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Michael_xu 2b1299b408
v11.0.3-20210517
4 years ago
..
src v11.0.3-20210517 4 years ago
LICENSE v11.0.3-20210517 4 years ago
README.md v11.0.3-20210517 4 years ago
composer.json v11.0.3-20210517 4 years ago

README.md

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

ThinkPHP 5.0 SAE扩展

添加下面的配置参数即可

'log'=>[
	'type'=> '\think\sae\Log',
]

'template' => [
	'type'	=>	'Think',
	'compile_type'	=> '\think\sae\Template',

]
'cache'=>[
	'type'  =>  '\think\sae\Cache',
]

数据库配置文件database.php中修改为

// 数据库类型
'type'        => 'mysql',
// 服务器地址
'hostname'    => SAE_MYSQL_HOST_M . ',' . SAE_MYSQL_HOST_S,
// 数据库名
'database'    => SAE_MYSQL_DB,
// 用户名
'username'    => SAE_MYSQL_USER,
// 密码
'password'    => SAE_MYSQL_PASS,
// 端口
'hostport'    => SAE_MYSQL_PORT,