A special welcome to our newest member, Humble-Servant.
Naming directories
#1
18 Feb 2024, 8:51pm UTC
Sunday 18th February 2024, at 8:51pm UTC
Status: Unresolved
I noticed I named my 'controllers' folder (or directory) a different name (originally a typo) inside my modules folder - I got a 404. I found the typo and named it 'controllers' and the error went away. Why is this? Is this a Trongate thing?
Edited on Sunday 18th February 2024, at 8:51pm UTC
#2
19 Feb 2024, 5:05am UTC
Monday 19th February 2024, at 5:05am UTC
Hi, modules are just folders inside your app. The structure of a module MUST contain a folder called 'controllers', with an optional 'views' and 'assets' folder. If you look in core.php you will see Trongate scans for the 'controllers' folder and if it doesn't exist, you will be shown the red 404 page. Please also check the docs if you haven't already, as it is very clearly explained.
Edited on Monday 19th February 2024, at 5:56am UTC