This is a templating "proof of concept" project for the Advanced PHP class at Madison Area Technical College.
The main objective is to learn some templating principles and see how partial templates can be managed in a larger project, and how templates can work with data.
This project uses the Twig templating engine.
- Clone down this repo, however you like.
- Make sure that this project is in the
public
, orpublic_html
directory of your web server. - Make sure you have composer installed.
- Run
composer install
. - Make sure you change the database credentials for this to suite your local environment in
controllers/StudentManager.php
(yes, I know, I know, this is not the best place for the db creds, I know...don't ever do this in production... don't!!! 🤓) - Make sure your db has as
students
table in it, with four columns:id
(Primary Key)name
(varchar 250)email
(varchar 250)created
(timestamp CURRENT_TIMESTAMP)