Just use docker-compose up
and you're ready to code
In order to understand how the autoload works, just follow the example for the main page, it goes through all the required steps.
Use the namespace myproject
or change it to your own.
Files will be named using this convention:
- Controller ->
NameCotroller
- Model ->
NameModel
- View ->
NameView
The view will load a page from public/html
All paths are defined in config.php
In order to better understand the docker code, look at this repository https://github.com/fredtux/sitepoint-docker-tutorial