php 什么是codeigniter中的APPPATH
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/17850535/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
what is APPPATH in codeigniter
提问by nextdoordoc
Here is an example.
这是一个例子。
class My_Loader extends CI_Loader {
parent::__construct();
include(APPPATH.'config/jscss.php');
}
what is the 'APPPATH' above?
上面的“APPPATH”是什么?
回答by Bora
APPPATHis your applicationfolder
APPPATH是您的应用程序文件夹
Copy jscss.php
file to /application/config/
folder.
将jscss.php
文件复制到/application/config/
文件夹。
/application
- /config
- jscss.php
- /controllers
- /cache
- /core
- etc..
/system
index.php
回答by ABorty
path to your application folder.
应用程序文件夹的路径。
回答by Nil'z
Path upto your Application
folder
路径到您的Application
文件夹
回答by Muhamad Riyan
PAth on your Application->Your Project
您的应用程序上的路径->您的项目
回答by Greald Henstra
APPPATH is defined in index.php:
APPPATH 在 index.php 中定义:
define('APPPATH', $application_folder.DIRECTORY_SEPARATOR);
回答by Abel Callejo
Description
描述
APPPATH
is a codeigniter constant. It contains value of the full path to your application
folder.
APPPATH
是一个代码点火器常数。它包含application
文件夹完整路径的值。
Value
价值
/path/to/your/codeigniter/application/
Note: The value of the constant has a slash character /
at the end. This is crucial for concatenation purposes.
注意:常量的值/
在末尾有一个斜杠字符。这对于连接目的至关重要。