mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-05 22:52:49 +08:00
取消 MODULE_PATH 常量 用 App::$modulePath 替代
This commit is contained in:
@@ -34,6 +34,11 @@ class App
|
||||
*/
|
||||
protected static $init = false;
|
||||
|
||||
/**
|
||||
* @var string 当前模块路径
|
||||
*/
|
||||
public static $modulePath;
|
||||
|
||||
/**
|
||||
* 执行应用程序
|
||||
* @access public
|
||||
@@ -232,7 +237,7 @@ class App
|
||||
$module = '';
|
||||
}
|
||||
// 当前模块路径
|
||||
define('MODULE_PATH', APP_PATH . ($module ? $module . DS : ''));
|
||||
App::$modulePath = APP_PATH . ($module ? $module . DS : '');
|
||||
|
||||
// 获取控制器名
|
||||
$controller = strip_tags($result[1] ?: $config['default_controller']);
|
||||
|
||||
Reference in New Issue
Block a user