Today I came across an interesting bug in a codeigniter application I was working on where I encoded ampersands (&) were appearing in a report. I did some rudimentary debugging and realised that for some reason, values from a form were being saved to the database html encoded. I stepped through the code and discovered …
CodeIgniter
CodeIgniter Error CSS Classes
When version 1.7 of CodeIgniter was released, they introduced a new form validation class that vastly simplified things. I particularly liked the new way in which any errors that occurred during form validation were displayed on screen. Where as before, an error message for a field was displayed as follows: <?=$this->validation->myfield_error?><?=$this->validation->myfield_error?> It seemed much neater …
Creating PDF Documents in PHP Using Tcpdf
When developing websites, it is not going to be too long before you are required to generate a pdf for users to download. One usually searches for a suitable library for this and in php, there are a few options out there. My personal favourite, and one that is still receiving regular updates and improvements, …