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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-25 16:34:17  来源:igfitidea点击:

what is APPPATH in codeigniter

phpcodeigniter

提问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.phpfile 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 Applicationfolder

路径到您的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

描述

APPPATHis a codeigniter constant. It contains value of the full path to your applicationfolder.

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.

注意:常量的值/在末尾有一个斜杠字符。这对于连接目的至关重要。