zhphp framework (四)动态加载应用程序产量,方便任何程序代码重构

时间:2021-08-03 03:13:52
<?php
/**
 * Created by JetBrains PhpStorm.
 * User: 张华
 * Date: 14-3-8
 * Time: 下午12:21
 * QQ: 746502560@qq.com
 * To change this template use File | Settings | File Templates.
 */
#你应用配置常量
defined('UPLOAD_PATH')?UPLOAD_PATH:define('UPLOAD_PATH',APP_PATH.'uploads/');
defined('UPLOAD_URL')?UPLOAD_URL:define('UPLOAD_URL',APP_HOST.APP_NAME.'/uploads/');
defined('HTML_STATIC_PATH')?HTML_STATIC_PATH:define('HTML_STATIC_PATH',DOC_ROOT.'/'.PROJECT_NAME.'/web/');#静态html地址
defined('KEYT')?KEYT:define('KEYT','zhphp');
defined('SESSION_DOMAIN')?SESSION_DOMAIN:define('SESSION_DOMAIN','locahost');//请修改成你的域名
defined('SESSION_PATH')?SESSION_PATH:define('SESSION_PATH',APP_PATH.'data/session/');#设置session id 保存路径,系统默认是在system/_data/_temp/,在开发后,建议你修改