Skip to content

Commit 507b418

Browse files
committed
docs: remove / at the end of "app/Controllers/" directory
The directory name is "app/Controllers", not "app/Controllers/".
1 parent 0879913 commit 507b418

1 file changed

Lines changed: 9 additions & 8 deletions

File tree

user_guide_src/source/incoming/controllers.rst

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ controllers. You can extend this class in any new controller.
187187

188188
.. literalinclude:: controllers/020.php
189189

190-
Then save the file to your **app/Controllers/** directory.
190+
Then save the file to your **app/Controllers** directory.
191191

192192
.. important:: The file must be called **Helloworld.php**, with a capital ``H``. When you use Auto Routing, Controller class names MUST start with an uppercase letter and ONLY the first character can be uppercase.
193193

@@ -218,7 +218,7 @@ class so that it can inherit all its methods.
218218

219219
.. note::
220220
The system will attempt to match the URI against Controllers by matching each segment against
221-
folders/files in **app/Controllers/**, when a match wasn't found against defined routes.
221+
folders/files in **app/Controllers**, when a match wasn't found against defined routes.
222222
That's why your folders/files MUST start with a capital letter and the rest MUST be lowercase.
223223

224224
If you want another naming convention you need to manually define it using the
@@ -319,7 +319,7 @@ If you are building a large application you might want to hierarchically
319319
organize or structure your controllers into sub-directories. CodeIgniter
320320
permits you to do this.
321321

322-
Simply create sub-directories under the main **app/Controllers/**,
322+
Simply create sub-directories under the main **app/Controllers**,
323323
and place your controller classes within them.
324324

325325
.. important:: Folder names MUST start with an uppercase letter and ONLY the first character can be uppercase.
@@ -333,7 +333,8 @@ To call the above controller your URI will look something like this::
333333

334334
example.com/index.php/products/shoes/show/123
335335

336-
.. note:: You cannot have directories with the same name in **app/Controllers/** and **public/**.
336+
.. note:: You cannot have directories with the same name in **app/Controllers**
337+
and **public**.
337338
This is because if there is a directory, the web server will search for it and
338339
it will not be routed to CodeIgniter.
339340

@@ -381,7 +382,7 @@ For security reasons be sure to declare any new utility methods as ``protected``
381382

382383
.. literalinclude:: controllers/008.php
383384

384-
Then save the file to your **app/Controllers/** directory.
385+
Then save the file to your **app/Controllers** directory.
385386

386387
.. important:: The file must be called **Helloworld.php**, with a capital ``H``. When you use Auto Routing, Controller class names MUST start with an uppercase letter and ONLY the first character can be uppercase.
387388

@@ -410,7 +411,7 @@ class so that it can inherit all its methods.
410411

411412
.. note::
412413
The system will attempt to match the URI against Controllers by matching each segment against
413-
folders/files in **app/Controllers/**, when a match wasn't found against defined routes.
414+
folders/files in **app/Controllers**, when a match wasn't found against defined routes.
414415
That's why your folders/files MUST start with a capital letter and the rest MUST be lowercase.
415416

416417
If you want another naming convention you need to manually define it using the
@@ -488,7 +489,7 @@ If you are building a large application you might want to hierarchically
488489
organize or structure your controllers into sub-directories. CodeIgniter
489490
permits you to do this.
490491

491-
Simply create sub-directories under the main **app/Controllers/**,
492+
Simply create sub-directories under the main **app/Controllers**,
492493
and place your controller classes within them.
493494

494495
.. important:: Folder names MUST start with an uppercase letter and ONLY the first character can be uppercase.
@@ -502,7 +503,7 @@ To call the above controller your URI will look something like this::
502503

503504
example.com/index.php/products/shoes/show/123
504505

505-
.. note:: You cannot have directories with the same name in **app/Controllers/** and **public/**.
506+
.. note:: You cannot have directories with the same name in **app/Controllers** and **public/**.
506507
This is because if there is a directory, the web server will search for it and
507508
it will not be routed to CodeIgniter.
508509

0 commit comments

Comments
 (0)