Skip to content

Commit e92a9f6

Browse files
committed
docs: add note for case-sensitive file systems
1 parent 4bbecfd commit e92a9f6

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

user_guide_src/source/concepts/autoloader.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,12 @@ they work in sequence and don't get in each other's way.
3030
The autoloader is always active, being registered with ``spl_autoload_register()`` at the
3131
beginning of the framework's execution.
3232

33+
.. important:: You should always be careful about the case of filenames. Many
34+
developers develop on case-insensitive file systems on Windows or macOS.
35+
However, most server environments use case-sensitive file systems. If the
36+
file name case is incorrect, the autoloader cannot find the file on the
37+
server.
38+
3339
Configuration
3440
*************
3541

user_guide_src/source/tutorial/static_pages.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@ Let's Make our First Controller
1919
Create a file at **app/Controllers/Pages.php** with the following
2020
code.
2121

22+
.. important:: You should always be careful about the case of filenames. Many
23+
developers develop on case-insensitive file systems on Windows or macOS.
24+
However, most server environments use case-sensitive file systems. If the
25+
file name case is incorrect, code that works locally will not work on the
26+
server.
27+
2228
.. literalinclude:: static_pages/001.php
2329

2430
You have created a class named ``Pages``, with a ``view()`` method that accepts

0 commit comments

Comments
 (0)