Project structure
A home for each part of your application.
This chapter will describe the application template after the current framework update. The outline below is a visual specimen for the field guide.
The application at a glance
Controllers, views and configuration each have a visible place. The final guide will walk through the template, explain how a request enters the application and show where your own code belongs.
app/
Controllers/ Routes and request handlers
Models/ Your application logic
Views/ Latte templates
public/ The web entry point and assets
config.yml Application configuration
Chapter in preparation The final directory map and commands will be checked against the updated application template.
A path through the application
- A request enters the application.
- The router finds a matching controller method.
- Middleware handles the applicable boundaries.
- The controller returns a response.
The Routing chapter will look more closely at how URLs reach your code.