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

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

WBOY
Release: 2016-06-13 12:25:40
Original
932 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:
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