Home > Backend Development > PHP Tutorial > ThinkPHP _PUBLIC_的定义 _ROOT_等 惯用 常量的定义

ThinkPHP _PUBLIC_的定义 _ROOT_等 惯用 常量的定义

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-13 12:25:40
Original
973 people have browsed it

ThinkPHP __PUBLIC__的定义 __ROOT__等 常用 常量的定义

  '__TMPL__' => APP_TMPL_PATH, // 项目模板目录

  '__ROOT__' => __ROOT__, // 当前网站地址

  '__APP__' => __APP__, // 当前项目地址

  '__GROUP__' => defined('GROUP_NAME')?__GROUP__:__APP__,

  '__ACTION__' => __ACTION__, // 当前操作地址

  '__SELF__' => __SELF__, // 当前页面地址

  '__URL__' => __URL__,

  '../Public' => APP_TMPL_PATH.'Public',// 项目公共模板目录

  '__PUBLIC__' => __ROOT__.'/Public',// 站点公共目录

 

  THINKPHP->Lib->Behavior->ContentReplaceBehavior.class.php

  常量定义

Related labels:
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
Latest Issues
php - laravel public related issues
From 1970-01-01 08:00:00
0
0
0
Don’t you need to bring public?
From 1970-01-01 08:00:00
0
0
0
public method library
From 1970-01-01 08:00:00
0
0
0
How does laravel get the public path?
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template