Snapshot of PHP code

Last year I created a simple forum website using CodeIgniter as the framework. Based in PHP, it was my first time using Models, Views and Controllers and I really enjoyed the experience. It is like many CRUD applications, where the user has the opportunity to create an article, read it, update or edit, and finally if you were the author, delete it.


The idea behind it was a Reddit-style website where people could share expertise on various subjects. Once a user logged in, they were able to create an article with a title and main message. Other users were able to comment on the said article to offer their insights on the subject matter.

Snapshot of PHP code - create