Home >Backend Development >PHP Tutorial > ThinkPHP读取不到系统恒量

ThinkPHP读取不到系统恒量

WBOY
WBOYOriginal
2016-06-13 13:00:09694browse

ThinkPHP读取不到系统常量

本帖最后由 csmizhou126dn 于 2012-05-09 23:28:09 编辑 编辑路径Enhance\Frame-ThinkPHP\admin\Lib\Action\UserAction.class.php


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


访问地址: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