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

CodeIgniter 1.7.x and Timezone

Just yesterday I saw a post on the Codeigniter forum, it was a question about setting the timezone every time a query is run. I had a similar problem before so this is the solution I used class Master_model extends Model{ public function __construct(){ parent::__construct();   $this->set_timezone(); }   public function set_timezone(){ $this->db->query("SET time_zone=’+0:00′"); } … Continue Reading

CodeIgniter 1.7.2 Blog – Part 1.1 – Database

As every application there is a starting point, some prefer drawing, some designing etc., as the first step of application development. I prefer separating the modules, and based on the module to build the database. I will be using MySQL v5.1. UTF-8 will be the encoding for multilanguage support, and InnoDB  storage engine (since it … Continue Reading

Introduction to CodeIgniter 1.7.x

Almost everyone programming in PHP after a time has used a framework, either for fast(sometimes +dirty) development or just for fun. CI is right for you if  (extracted from http://codeigniter.com/user_guide/) You want a framework with a small footprint. You need exceptional performance. You need broad compatibility with standard hosting accounts that run a variety of … Continue Reading