The top ranked php framework
Posted 18 February 2010 - 07:13 AM
Posted 18 February 2010 - 09:48 AM
They said it is even faster than Yii!
I tried many other framework like CI, Zend... before staying with Yii.
I heard about Yii in the first time because of its performance. But now I found that Yii is very powerful and extensible, imo this is even better than performance issue.
So if someone convince me that some other framework is even faster than Yii, Yii will be my best choice because it has all great thing I need.
Posted 18 February 2010 - 10:12 AM
Can someone explain what's big difference between CI and Yii? Obviously it's a great product too.
Posted 18 February 2010 - 08:00 PM
As someone who is trying out Yii because I've found codeigniter somewhat lacking, I'll try to answer (albeit with my limited experience of Yii):
1 - Codeigniter supports both PHP4 / 5, is a mixture of OO and procedural code and doesn't make use of PHP5 only functionality, for example auto_loading, so you end doing stuff like this all the time:
$this->load->model('auth/user'); // have to load the user model $this->user->is_logged_in(); // use the user model
The lack of PHP4 compatibility also has the effect of reducing flexibility, one of the big reasons I am trying out Yii.
2 - Codeigniter includes a lot less out of the box, no console, no modular functionality, no auth / acl, limited form stuff (validation + helper, no form building class), very light active record implementation, very basic caching etc.
People are of course able to use various libraries written by Codeigniter users to fill these gaps, I wasn't really comfortable relying on 3rd party libraries that could be dropped at any time (as many of them have) for what I consider core functionality - auth for example.
3 - Codeigniter is not updated very often (about once every 6 months) as it is under the stewardship of EllisLabs (they make a CMS called expression engine and quite rightly spend most of their time attending to that, their business), so you get the situation where a security flaw or serious bug may not get fixed for half a year, not ideal.
Of course on the plus side with the slow release rate and PHP4 support Codeigniter very rarely breaks backwards compatibility, unlike some frameworks (Being new to Yii I don't how it fares in this area).
4 - They do have a very big community 116,000 members of the forum, although given the number of posts per day is only marginally more than here, I do wonder how many are active and how many have left for other frameworks.
5 - It has a very low learning curve, so is good in that respect for anyone new to frameworks or MVC.
I'll stop babbling now.
Posted 19 February 2010 - 02:00 AM
Posted 27 February 2010 - 03:12 PM
Yii appealed to me because it is pure OOP and I wanted to take my programming in that direction. Another thing that I realized was the fact that most of the community contributed code is trying to achieve what Yii already has.
I am very happy I have taken the time to learn Yii, I still have a long way to go but the consistent approach of the developers makes learning Yii easier once you get your head around a few things. I have to admit, I have read the definitive guide about ten times and I am only now feeling like I understand everything in there!
I am sure that a lot of other programmers especially if they are more familiar with OOP would have an easier time getting up to speed.
It is interesting to note that my first real CodeIgniter application is the frontend for my first real Yii application. Currently I am working on an enhanced admin panel for my client using Yii!
Posted 13 March 2010 - 02:57 PM
I set Yii above frameworks like Zend, Symphony, Symfony, CodeIgniter, CakePHP and DooPHP
I want to note that Symfony is pretty good also, but in my opinion 'too complicated' and 'overdone'. Maybe good for very very very very large web projects with many developers but no.. not for me .