Welcome Guest, Not a member yet? Register   Sign In
Why can't we have folders with the same name in App\Controllers and \Public?
#1

Hi,
I noticed some errors in my app, and after some struggles, I decided to rename a folder that had the same name in Controllers and Public. After that, my app worked. So, is there something I'm missing here. Because for me, the below would not work:
Code:
- app
  -- Controllers
      -- Backend
- public
      -- backend

Thanks.
Reply
#2

If you have a folder, your web server searches it and does not route to PHP (CodeIgniter).
Reply
#3

(01-24-2022, 07:14 PM)kenjis Wrote: If you have a folder, your web server searches it and does not route to PHP (CodeIgniter).

Thank you for the info. It would be nice to have a note about this in the documentation.
Reply
#4

I added a Note:
https://codeigniter4.github.io/CodeIgnit...irectories
Reply
#5

Thank you.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB