【opencart3源码分析】前台配置文件config.php

<?php
// HTTP
define('HTTP_SERVER', 'http://opencart.com/');

// HTTPS
define('HTTPS_SERVER', 'http://opencart.com/');

// DIR
// 应用目录
define('DIR_APPLICATION', 'D:/phpstudy/PHPTutorial/WWW/opencart/catalog/');
// 系统目录
define('DIR_SYSTEM', 'D:/phpstudy/PHPTutorial/WWW/opencart/system/');
// 图像目录
define('DIR_IMAGE', 'D:/phpstudy/PHPTutorial/WWW/opencart/image/');
// 存储目录
define('DIR_STORAGE', 'D:/phpstudy/PHPTutorial/WWW/opencart/storage/');
// 语言目录
define('DIR_LANGUAGE', DIR_APPLICATION . 'language/');
// 主题目录
define('DIR_TEMPLATE', DIR_APPLICATION . 'view/theme/');
// 配置目录
define('DIR_CONFIG', DIR_SYSTEM . 'config/');
// 缓存目录
define('DIR_CACHE', DIR_STORAGE . 'cache/');
// 下载目录
define('DIR_DOWNLOAD', DIR_STORAGE . 'download/');
// 日志目录
define('DIR_LOGS', DIR_STORAGE . 'logs/');

define('DIR_MODIFICATION', DIR_STORAGE . 'modification/');
// session目录
define('DIR_SESSION', DIR_STORAGE . 'session/');
// 上传目录
define('DIR_UPLOAD', DIR_STORAGE . 'upload/');

// DB
// 数据库驱动
define('DB_DRIVER', 'mysqli');
// 主机名
define('DB_HOSTNAME', 'localhost');
// 用户名
define('DB_USERNAME', 'root');
// 用户密码
define('DB_PASSWORD', 'root');
// 数据库名
define('DB_DATABASE', 'opencart31');
// 数据库端口
define('DB_PORT', '3306');
// 数据表前缀
define('DB_PREFIX', 'oc_');

猜你喜欢

转载自blog.csdn.net/qq2942713658/article/details/81342367