Creating and Installing crontabs using CodeIgniter

How to, OpenSource, PHP, Resources, Reviews, Tips and Tricks, Tutorials
Last night, I was trying to get a crontab working in CodeIgniter, since my current project (a personal project) is using CodeIgniter now. I didn't wanted to use the conventional approach of running crontabs and my code seperate. Unfortunately, CodeIgniter does not have support for Crontabs and I didn't wanted to user wget in linux crontab to initiate unwanted requests. I spent some time and came up with a solution. It uses CodeIgniter backend Does not modify any core architecture of CodeIgniter Keeps configuration at one place So enough of the summary and let me show you how its done. Create a file (e.g. cron.php) in the same place as your index.php and system folder. Here is its code [php]/** * @author Asim Zeeshan * @web http://www.asim.pk/ * @date 13th…
Read More

Template Library for CodeIgniter, Simple, Fast and Easy!

How to, OpenSource, PHP, Resources, Reviews, Tips and Tricks, Tutorials
If you have not noticed, I just got started on CodeIgniter. I was really disappointed today when I noticed the lack of a template system in CodeIngiter to skin my little application. They say The Template Parser Class is not a full-blown template parsing solution. We've kept it very lean on purpose in order to maintain maximum performance. Lucky for me, I got a little help here, the library is great and works well for the latest version of CI too best of all its small and does not modify the CI code in anyway. It just uses the already available code to skin the application. Sleak! I made a couple of modifications in the original library, here are my modifications [php]<?php if ( ! defined('BASEPATH')) exit('No direct script access…
Read More

Getting Started on CodeIgniter, the lightening fast PHP Framework

OpenSource, PHP, Reviews, Thoughts
Today, I have started on CodeIgniter, one of the powerful PHP frameworks recommended by Rasmus Lerdorf CodeIgniter is most often noted for its speed when compared to other PHP frameworks. In a critical take on PHP frameworks in general, PHP creator Rasmus Lerdorf spoke at frOSCon in August 2008, noting that he liked CodeIgniter "because it is faster, lighter and the least like a framework". Read more about it here. So far what I can tell you is that it really is FAST. I have been coding in CakePHP and Zend Framework, but this framework is very fast. Truely speaking I did not felt any difference using it. I will keep posting about my experience of CodeIgniter.
Read More