Directory structure
Gozen follows a traditional MVC pattern. That is to say, the model, view, controller paradigm.
The root directory
- cmd
- controllers
- db
- resources
- routes
- system
- uploads
- views
- .env
cmd
This directory is where you can generate Gozen scaffolding using the terminal. Here you can also generate the app key
controllers
This directory is where you write all your controllers.
db
This directory contains all the code relating to connecting to your preferred database
This directory only stores the mail template. You can customize or change this to your liking
resources
This is where you typically store all your external site assets, typically this will be custom css or javascript files
routes
This directory is where you setup your routes.
system
This directory is where all the core Gozen framework files live. Typically you don't need to change anything here
uploads
This directory is where all your uploads will be.
views
This directory is where you create your site html templates. It is worth noting Gozen will only support a one live file structure. That is to say, you can NOT add sub directories. All your html files must be at one level.
.env
Finally, the .env file is where you pre configure all your site variables, such as url, app key, database, email, or any external api settings you may need.
Did you know?
All your templates files in the 'views' directory must not contain sub directories.