CodeIgniter Framework

Guestbook

This was done as part of a job application. The user model only has a login and logout method, and I probably won't expand it as the app was never meant to be deployed. I may, however, work on the REST controller and ajax behaviour.

View code at GitHub

To-do

  • Consider using preformatted fields to display messages instead of parsing to HTML.
  • Fine-tune REST errors (e.g. submitting a form with no modifications results in 400 Bad request). Though I'll most certainly struggle with one of CodeIgniter's shortcomings: database error handling.
  • If you add a message when not on first page, the message is temporarily shown on the active page. I could load more results with ajax, show button only on first page, or redirect to first page after submission.

Comments