/TranquilMVC

A small MVC

Primary LanguagePHP

Logo for Tranquil

TranquilMVC

This is a small MVC, written for small sites in mind.

Features

  • Routing, for clean and good-looking URLs
  • PDO-connection to the database
  • Templates

Logging in

username: developer
password: tranquil

Routing

The router splits the PATH_INFO by each /, and instantiates the requested view based on the route. Example:

localhost/admin/login

Will instantiate the view named login.php from the admin-view folder.

/views
--/admin
--/--/login.php

This view is then rendered into a outputbuffer that is then rendered into the template, and the template is then rendered to the user.
Then from the view-file, we can choose to instantiate the respective model, or not.

PDO

What can I say, basic PDO. For an example, take a look at /models/admin/login.php

TODO

  • Either protect all sensitive folders, or move them into a folder outside of public_html
  • Form-editor.
  • Caching.
  • SASS-compilation.