Use app instead of application

This commit is contained in:
Natan Felles 2018-12-07 18:03:40 -02:00
parent e609147fbc
commit 95193c5f61
No known key found for this signature in database
GPG Key ID: 59CC6FA82E1E87FD
4 changed files with 6 additions and 6 deletions

View File

@ -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';
}

View File

@ -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
View File

@ -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();

View File

@ -51,7 +51,7 @@
*/
if (! defined('APPPATH'))
{
define('APPPATH', realpath($paths->applicationDirectory) . DIRECTORY_SEPARATOR);
define('APPPATH', realpath($paths->appDirectory) . DIRECTORY_SEPARATOR);
}
/**