A Twig Templates for a REST API
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.
To get started with this project
- Clone down this repo, however you like.
- Make sure that this project is in the
public_htmldirectory of your web server.
- Make sure you have composer installed.
- 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
studentstable in it, with four columns: