Skip to content

Commit 0eb8b65

Browse files
committed
Update citations from application to app
1 parent 95193c5 commit 0eb8b65

16 files changed

Lines changed: 56 additions & 56 deletions

File tree

user_guide_src/source/cli/cli.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ in it::
4949
}
5050
}
5151

52-
Then save the file to your **application/Controllers/** directory.
52+
Then save the file to your **app/Controllers/** directory.
5353

5454
Now normally you would visit the your site using a URL similar to this::
5555

user_guide_src/source/cli/cli_commands.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ building out custom code generators for your company.
1616
Running Commands
1717
****************
1818

19-
Commands are run from the command line, in the root directory. The same one that holds the **/application**
19+
Commands are run from the command line, in the root directory. The same one that holds the **/app**
2020
and **/system** directories. A custom script, **spark** has been provided that is used to run any of the
2121
cli commands::
2222

@@ -67,7 +67,7 @@ File Location
6767
=============
6868

6969
Commands must be stored within a directory named **Commands**. However, that directory can be located anywhere
70-
that the :doc:`Autoloader </concepts/autoloader>` can locate it. This could be in **/application/Commands**, or
70+
that the :doc:`Autoloader </concepts/autoloader>` can locate it. This could be in **/app/Commands**, or
7171
a directory that you keep commands in to use in all of your project development, like **Acme/Commands**.
7272

7373
.. note:: When the commands are executed, the full CodeIgniter cli environment has been loaded, making it
@@ -77,7 +77,7 @@ An Example Command
7777
==================
7878

7979
Let's step through an example command whose only function is to report basic information about the application
80-
itself, for demonstration purposes. Start by creating a new file at **/application/Commands/AppInfo.php**. It
80+
itself, for demonstration purposes. Start by creating a new file at **/app/Commands/AppInfo.php**. It
8181
should contain the following code::
8282

8383
<?php namespace App\Commands;

user_guide_src/source/concepts/mvc.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ the data storage.
1818

1919
At their most basic, controllers and models are simply classes that have a specific job. They are not the only class
2020
types that you can use, obviously, but the make up the core of how this framework is designed to be used. They even
21-
have designated directories in the **/application** directory for their storage, though you're free to store them
21+
have designated directories in the **/app** directory for their storage, though you're free to store them
2222
wherever you desire, as long as they are properly namespaced. We will discuss that in more detail below.
2323

2424
Let's take a closer look at each of these three main components.
@@ -37,11 +37,11 @@ Views get the data to display from the controllers, who pass it to the views as
3737
with simple ``echo`` calls. You can also display other views within a view, making it pretty simple to display a
3838
common header or footer on every page.
3939

40-
Views are generally stored in **/application/Views**, but can quickly become unwieldy if not organized in some fashion.
40+
Views are generally stored in **/app/Views**, but can quickly become unwieldy if not organized in some fashion.
4141
CodeIgniter does not enforce any type of organization, but a good rule of thumb would be to create a new directory in
4242
the **Views** directory for each controller. Then, name views by the method name. This makes them very easy find later
4343
on. For example, a user's profile might be displayed in a controller named ``User``, and a method named ``profile``.
44-
You might store the view file for this method in **/application/Views/User/Profile.php**.
44+
You might store the view file for this method in **/app/Views/User/Profile.php**.
4545

4646
That type of organization works great as a base habit to get into. At times you might need to organize it differently.
4747
That's not a problem. As long as CodeIgniter can find the file, it can display it.
@@ -61,7 +61,7 @@ it's saved to meet company standards, or formatting a column in a certain way be
6161
By keeping these business requirements in the model, you won't repeat code throughout several controllers and accidentally
6262
miss updating an area.
6363

64-
Models are typically stored in **/application/Models**, though they can use a namespace to be grouped however you need.
64+
Models are typically stored in **/app/Models**, though they can use a namespace to be grouped however you need.
6565

6666
:doc:`Find out more about models </models/model>`
6767

@@ -77,7 +77,7 @@ The other responsibility of the controller is to handle everything that pertains
7777
authentication, web safety, encoding, etc. In short, the controller is where you make sure that people are allowed to
7878
be there, and they get the data they need in a format they can use.
7979

80-
Controllers are typically stored in **/application/Controllers**, though they can use a namespace to be grouped however
80+
Controllers are typically stored in **/app/Controllers**, though they can use a namespace to be grouped however
8181
you need.
8282

8383
:doc:`Find out more about controllers </incoming/controllers>`

user_guide_src/source/concepts/services.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ create a new class that implements the ``RouterCollectionInterface``::
7979
// Implement required methods here.
8080
}
8181

82-
Finally, modify **/application/Config/Services.php** to create a new instance of ``MyRouter``
82+
Finally, modify **/app/Config/Services.php** to create a new instance of ``MyRouter``
8383
instead of ``CodeIgniter\Router\RouterCollection``::
8484

8585
public static function routes()

user_guide_src/source/concepts/structure.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,18 @@ can change to meet the needs of your application.
88
Default Directories
99
===================
1010

11-
A fresh install has six directories: ``/application``, ``/system``, ``/public``,
11+
A fresh install has six directories: ``/app``, ``/system``, ``/public``,
1212
``/writable``, ``/tests`` and ``/docs``.
1313
Each of these directories has a very specific part to play.
1414

15-
application
16-
-----------
17-
The ``application`` directory is where all of your application code lives. This comes with a default directory
15+
app
16+
---
17+
The ``app`` directory is where all of your application code lives. This comes with a default directory
1818
structure that works well for many applications. The following folders make up the basic contents:
1919

2020
.. code-block:: none
2121
22-
/application
22+
/app
2323
/Config Stores the configuration files
2424
/Controllers Controllers determine the program flow
2525
/Database Stores the database migrations and seeds files
@@ -31,7 +31,7 @@ structure that works well for many applications. The following folders make up t
3131
/ThirdParty ThirdParty libraries that can be used in application
3232
/Views Views make up the HTML that is displayed to the client.
3333
34-
Because the ``application`` directory is already namespaced, you should feel free to modify the structure
34+
Because the ``app`` directory is already namespaced, you should feel free to modify the structure
3535
of this directory to suit your application's needs. For example, you might decide to start using the Repository
3636
pattern and Entity Models to work with your data. In this case, you could rename the ``Models`` directory to
3737
``Repositories``, and add a new ``Entities`` directory.
@@ -40,7 +40,7 @@ pattern and Entity Models to work with your data. In this case, you could rename
4040
routing to controllers, and will need to define all of your routes in the routes file.
4141

4242
All files in this directory live under the ``App`` namespace, though you are free to change that in
43-
**application/Config/Constants.php**.
43+
**app/Config/Constants.php**.
4444

4545
system
4646
------
@@ -84,4 +84,4 @@ Modifying Directory Locations
8484
-----------------------------
8585

8686
If you've relocated any of the main directories, you can change the configuration
87-
settings inside ``application/Config/Paths``.
87+
settings inside ``app/Config/Paths``.

user_guide_src/source/database/configuration.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Database Configuration
88

99
CodeIgniter has a config file that lets you store your database
1010
connection values (username, password, database name, etc.). The config
11-
file is located at application/Config/Database.php. You can also set
11+
file is located at app/Config/Database.php. You can also set
1212
database connection values in the .env file. See below for more details.
1313

1414
The config settings are stored in a class property that is an array with this

user_guide_src/source/dbmgmt/migration.rst

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ need to be run against the production machines next time you deploy.
1111
The database table **migration** tracks which migrations have already been
1212
run so all you have to do is update your application files and
1313
call ``$migration->current()`` to work out which migrations should be run.
14-
The current version is found in **application/Config/Migrations.php**.
14+
The current version is found in **app/Config/Migrations.php**.
1515

1616
.. contents::
1717
:local:
@@ -36,7 +36,7 @@ method taken. Two numbering styles are available:
3636
the preferred scheme in CodeIgniter 3.0 and later.
3737

3838
The desired style may be selected using the ``$type`` setting in your
39-
*application/Config/Migrations.php* file. The default setting is timestamp.
39+
*app/Config/Migrations.php* file. The default setting is timestamp.
4040

4141
Regardless of which numbering style you choose to use, prefix your migration
4242
files with the migration number followed by an underscore and a descriptive
@@ -50,7 +50,7 @@ Create a Migration
5050
******************
5151

5252
This will be the first migration for a new site which has a blog. All
53-
migrations go in the **application/Database/Migrations/** directory and have names such
53+
migrations go in the **app/Database/Migrations/** directory and have names such
5454
as *20121031100537_Add_blog.php*.
5555
::
5656

@@ -86,7 +86,7 @@ as *20121031100537_Add_blog.php*.
8686
}
8787
}
8888

89-
Then in **application/Config/Migrations.php** set ``$currentVersion = 20121031100537;``.
89+
Then in **app/Config/Migrations.php** set ``$currentVersion = 20121031100537;``.
9090

9191
The database connection and the database Forge class are both available to you through
9292
``$this->db`` and ``$this->forge``, respectively.
@@ -108,7 +108,7 @@ Database Groups
108108
===============
109109

110110
A migration will only be run against a single database group. If you have multiple groups defined in
111-
**application/Config/Database.php**, then it will run against the ``$defaultGroup`` as specified
111+
**app/Config/Database.php**, then it will run against the ``$defaultGroup`` as specified
112112
in that same configuration file. There may be times when you need different schemas for different
113113
database groups. Perhaps you have one database that is used for all general site information, while
114114
another database is used for mission critical data. You can ensure that migrations are run only
@@ -128,7 +128,7 @@ Namespaces
128128
==========
129129

130130
The migration library can automatically scan all namespaces you have defined within
131-
**application/Config/Autoload.php** and its ``$psr4`` property for matching directory
131+
**app/Config/Autoload.php** and its ``$psr4`` property for matching directory
132132
names. It will include all migrations it finds in Database/Migrations.
133133

134134
Each namespace has it's own version sequence, this will help you upgrade and downgrade each module (namespace) without affecting other namespaces.
@@ -149,7 +149,7 @@ re-usable, modular code suites.
149149
Usage Example
150150
*************
151151

152-
In this example some simple code is placed in **application/Controllers/Migrate.php**
152+
In this example some simple code is placed in **app/Controllers/Migrate.php**
153153
to update the schema::
154154

155155
<?php
@@ -265,7 +265,7 @@ You can use (refresh) with the following options:
265265

266266
**create**
267267

268-
Creates a skeleton migration file in **application/Database/Migrations**.
268+
Creates a skeleton migration file in **app/Database/Migrations**.
269269

270270
- When migration type is timestamp, using the YYYYMMDDHHIISS format::
271271

@@ -283,7 +283,7 @@ You can use (create) with the following options:
283283
Migration Preferences
284284
*********************
285285

286-
The following is a table of all the config options for migrations, available in **application/Config/Migrations.php**.
286+
The following is a table of all the config options for migrations, available in **app/Config/Migrations.php**.
287287

288288
========================== ====================== ========================== =============================================================
289289
Preference Default Options Description
@@ -308,7 +308,7 @@ Class Reference
308308
:rtype: mixed
309309

310310
Migrates up to the current version (whatever is set for
311-
``$currentVersion`` in *application/Config/Migrations.php*).
311+
``$currentVersion`` in *app/Config/Migrations.php*).
312312

313313
.. php:method:: findMigrations()
314314

user_guide_src/source/dbmgmt/seeds.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ event or setting information, and more.
1010
Database seeds are simple classes that must have a **run()** method, and extend **CodeIgniter\Database\Seeder**.
1111
Within the **run()** the class can create any form of data that it needs to. It has access to the database
1212
connection and the forge through ``$this->db`` and ``$this->forge``, respectively. Seed files must be
13-
stored within the **application/Database/Seeds** directory. The name of the file must match the name of the class.
13+
stored within the **app/Database/Seeds** directory. The name of the file must match the name of the class.
1414
::
1515

16-
// application/Database/Seeds/SimpleSeeder.php
16+
// app/Database/Seeds/SimpleSeeder.php
1717
class SimpleSeeder extends \CodeIgniter\Database\Seeder
1818
{
1919
public function run()

user_guide_src/source/general/common_functions.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ Core Constants
322322

323323
.. php:const:: APPPATH
324324
325-
The path to the **application** directory.
325+
The path to the **app** directory.
326326

327327
.. php:const:: ROOTPATH
328328

user_guide_src/source/general/errors.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ PageNotFoundException
9393
---------------------
9494

9595
This is used to signal a 404, Page Not Found error. When thrown, the system will show the view found at
96-
``/application/views/errors/html/error_404.php``. You should customize all of the error views for your site.
96+
``/app/views/errors/html/error_404.php``. You should customize all of the error views for your site.
9797
If, in ``Config/Routes.php``, you have specified a 404 Override, that will be called instead of the standard
9898
404 page::
9999

0 commit comments

Comments
 (0)