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

ThinkPHP读取不到系统恒量

WBOY
Release: 2016-06-13 13:00:09
Original
708 people have browsed it

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 />
    }
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