mirror of
https://github.com/codeigniter4/CodeIgniter4.git
synced 2025-02-20 11:44:28 +08:00
Use app instead of application
This commit is contained in:
parent
e609147fbc
commit
95193c5f61
@ -27,7 +27,7 @@ class Paths
|
||||
* APPLICATION FOLDER NAME
|
||||
*---------------------------------------------------------------
|
||||
*
|
||||
* If you want this front controller to use a different "application"
|
||||
* If you want this front controller to use a different "app"
|
||||
* folder than the default one you can set its name here. The folder
|
||||
* can also be renamed or relocated anywhere on your getServer. If
|
||||
* you do, use a full getServer path. For more info please see the user guide:
|
||||
@ -35,7 +35,7 @@ class Paths
|
||||
*
|
||||
* NO TRAILING SLASH!
|
||||
*/
|
||||
public $applicationDirectory = __DIR__ . '/../../application';
|
||||
public $appDirectory = __DIR__ . '/../../app';
|
||||
|
||||
/*
|
||||
* ---------------------------------------------------------------
|
||||
@ -73,5 +73,5 @@ class Paths
|
||||
* default this is in `application/Views`. This value
|
||||
* is used when no value is provided to `Services::renderer()`.
|
||||
*/
|
||||
public $viewDirectory = __DIR__ . '/../../application/Views';
|
||||
public $viewDirectory = __DIR__ . '/../../app/Views';
|
||||
}
|
||||
|
@ -13,7 +13,7 @@ define('FCPATH', __DIR__ . DIRECTORY_SEPARATOR);
|
||||
|
||||
// Location of the Paths config file.
|
||||
// This is the line that might need to be changed, depending on your folder structure.
|
||||
$pathsPath = FCPATH . '../application/Config/Paths.php';
|
||||
$pathsPath = FCPATH . '../app/Config/Paths.php';
|
||||
|
||||
/*
|
||||
*---------------------------------------------------------------
|
||||
|
2
spark
2
spark
@ -33,7 +33,7 @@ if (substr(php_sapi_name(), 0, 3) === 'cgi')
|
||||
define('FCPATH', __DIR__ . '/public' . DIRECTORY_SEPARATOR);
|
||||
|
||||
// Load our paths config file
|
||||
require 'application/Config/Paths.php';
|
||||
require 'app/Config/Paths.php';
|
||||
|
||||
$paths = new Config\Paths();
|
||||
|
||||
|
@ -51,7 +51,7 @@
|
||||
*/
|
||||
if (! defined('APPPATH'))
|
||||
{
|
||||
define('APPPATH', realpath($paths->applicationDirectory) . DIRECTORY_SEPARATOR);
|
||||
define('APPPATH', realpath($paths->appDirectory) . DIRECTORY_SEPARATOR);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user