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

WBOY
Release: 2016-06-13 13:31:51
Original
973 people have browsed it

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_;
    }
Copy after login


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

------解决方案--------------------
人家约定的是两个下划线,你只写了一个。
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template