Document templates with odtPHP and CodeIgniter 1.7.2

If you want to generate documents from your data (database, xml or any other source), I’ve found that odtPHP does a very good job. So here is a simple tutorial on how to use this library. 1. Download odtPHP from http://www.odtphp.com/index.php?i=download 2. Extract the zip file somewhere where you like, you will see there will … Continue Reading

PHP 4&5 constructor

When developing different kind of applications, there will come a time when you’ll be deploying your application in different versions of php (4.x or 5.x). Several times I had to go through the php classes and modify the php contructor from /** * PHP 4 Compatible Constructor */ function myClass() { //some code here } … Continue Reading