<?php
// 站点url
$_['site_url'] = '';
// Url
$_['url_autostart'] = true;
// 语言
$_['language_directory'] = 'en-gb';
$_['language_autoload'] = array('en-gb');
// 默认时区
$_['date_timezone'] = 'UTC';
// 数据库
$_['db_engine'] = 'mysqli'; // mpdo, mssql, mysql, mysqli or postgre
$_['db_hostname'] = 'localhost';
$_['db_username'] = 'root';
$_['db_password'] = '';
$_['db_database'] = '';
$_['db_port'] = 3306;
$_['db_autostart'] = false;
// 邮件
$_['mail_engine'] = 'mail'; // mail or smtp
$_['mail_from'] = ''; // Your E-Mail
$_['mail_sender'] = ''; // Your name or company name
$_['mail_reply_to'] = ''; // Reply to E-Mail
$_['mail_smtp_hostname'] = '';
$_['mail_smtp_username'] = '';
$_['mail_smtp_password'] = '';
$_['mail_smtp_port'] = 25;
$_['mail_smtp_timeout'] = 5;
$_['mail_verp'] = false;
$_['mail_parameter'] = '';
// 缓存
$_['cache_engine'] = 'file'; // apc, file, mem or memcached
$_['cache_expire'] = 3600;
// Session
$_['session_engine'] = 'file';
$_['session_autostart'] = true;
$_['session_name'] = 'OCSESSID';
// 模板
$_['template_engine'] = 'twig';
$_['template_directory'] = '';
$_['template_cache'] = false;
$_['template_extension'] = '.twig';
// 错误
$_['error_display'] = true;
$_['error_log'] = true;
$_['error_filename'] = 'error.log';
// 响应
$_['response_header'] = array('Content-Type: text/html; charset=utf-8');
$_['response_compression'] = 0;
// 自动配置
$_['config_autoload'] = array();
// 自动加载类库
$_['library_autoload'] = array();
// 自动加载模型
$_['model_autoload'] = array();
// 行为
$_['action_default'] = 'common/home';
$_['action_router'] = 'startup/router';
$_['action_error'] = 'error/not_found';
$_['action_pre_action'] = array();
$_['action_event'] = array();
$_['action_cron'] = array();
【opencart3源码分析】系统配置文件default.php
猜你喜欢
转载自blog.csdn.net/qq2942713658/article/details/81544679
今日推荐
周排行