Kohana or CodeIgniter or CakePHP?

Personal, PHP, Thoughts
I am going to start on a small system for internal use and I wanted to re-think my choice of CodeIgniter because it does not have templates or ORM. Guess what, I landed with KohanaPHP. It sounds very tempting that a new MVC Framework based on CodeIgniter with new features (especially ORM) is here but the documentation is really really poor. I tried googling for a book or tutorial and I was really disappointed to have found none. I tried Amazon.com for a book but no books. Looks like I have landed in some weird space that might be good looking but I need to get my hands dirty in the code to learn it and at the end of the day, it may seem that I have lost a…
Read More

CodeIgniter or CakePHP? can’t decide

Personal, PHP
Can't decide between CodeIgniter or CakePHP for my personal project. CodeIgniter is faster in terms of performance but development is slow, CakePHP's cake-bake makes development faster but its performance is not good. My problem is that I need both. I want it at best performance since I will be handling millions even billions of domain records AND I cannot spend more time developing my own system. Any ideas?
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

CakePHP – link / include JavaScript files in layouts

JavaScript Libraries, OpenSource, PHP, Resources, Tips and Tricks, Tutorials
Create (or modify the) file [code lang="plain"]app/app_controller.php[/code] add this code [php] class AppController extends Controller { var $helpers = array('Html', 'Form', 'Javascript'); } [/php] CakePHP 1.2 allows you to define a reference to a Javascript file which is then added to the head section of the generated code. For this purpose the variable $scripts_for_layout has to be added to the layout: [php] <head> < ?php echo $scripts_for_layout; ?> </head> [/php] In the view you can now link to the Javascript file with: [php] $javascript->link('script.js', false); // OR you can simply use $javascript->link('script.js'); [/php]
Read More