Home >Backend Development >PHP Tutorial > ThinkPHP读取不到系统常量解决方案

ThinkPHP读取不到系统常量解决方案

WBOY
WBOYOriginal
2016-06-13 13:31:51998browse

ThinkPHP读取不到系统常量
编辑路径Enhance\Frame-ThinkPHP\admin\Lib\Action\UserAction.class.php


PHP code
<!--

Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/

-->    public function index()
    {
        echo _ROOT_.'<br>';
        echo _APP_;
    }


访问地址:http://localhost/Enhance/Frame-ThinkPHP/admin.php/user 
输出内容依然是:
_ROOT_
_APP_

------解决方案--------------------
人家约定的是两个下划线,你只写了一个。
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn