[hcs-d] PHP frameworks
bliu at college.harvard.edu
Fri Dec 31 21:09:56 EST 2010
CodeIgniter has a very gentle learning curve, so it can be picked up
pretty quickly. I guess it's a good framework to play around with a bit
if you're new to the MVC framework paradigm. But otherwise, I've found
that's it's nowhere near robust enough to create a website with heavy
functionality, and I would definitely go with a different framework for
a more serious and long-term project.
On 1/1/2011 5:59 AM, Ted Pak wrote:
> I used CodeIgniter in the distant past and am connected to a few projects that are still running on it. It is OK as a beginner's framework, and it is a good introduction to the principles found in Kohana because Kohana was forked from it. However, I find that its insistence on being completely PHP4 compatible holds it back from doing a lot of the cooler things that Kohana does.
> So for example, it doesn't have Kohana's ORM library, which makes DB operations kind of a drag. And you will find that the way CodeIgniter does class loading causes frequent awkwardness. $this->load->foo('bar') over and over again is inferior to the PHP5 style autoloading in Kohana and causes lots of local namespace collisions that you have to forcibly correct.
> On Dec 31, 2010, at 4:34 AM, Lurie, Mark wrote:
>> Hi all,
>> This was helpful, thanks. Has anyone used CodeIgniter? I'd love to hear what you thought if so.
>> From: hcs-discuss-bounces at lists.hcs.harvard.edu [hcs-discuss-bounces at lists.hcs.harvard.edu] On Behalf Of Ted Pak [tpak at fas.harvard.edu]
>> Sent: Monday, December 27, 2010 11:40 AM
>> To: Olga Zinoveva
>> Cc: HCS Discuss
>> Subject: Re: [hcs-d] PHP frameworks
>> I recommend Kohana 2.x, for being the most suited for rapid development, and the best of the Rails-inspired PHP frameworks. The documentation can be a little wanting in certain areas, so it is definitely for the more comfortable. OTOH, the framework code is very readable, in case you ever do need to find out how something is doing its thing. The ORM class, routing system, nested views and cascading filesystem, once understood, are quite sweet. It also makes full use of the slickest parts of PHP5 like class autoloading and __get()/__set().
>> http://kohanaframework.org/ and for 2.x docs, http://docs.kohanaphp.com/
>> I wouldn't recommend 3.x, since the group took it in certain directions that grind at my heart. (But don't take my word for it, I might just be digging my feet in.) You might want to cherry pick some handy helpers from it that should have been in 2.x, like http://kohanaframework.org/guide/api/Arr#get .
>> Kohana is quite capable of doing lots of AJAXy stuff. For instance, I used it to build http://quickfuseapps.com/ , which is heavy on the AJAX and light on everything else. Kohana strictly separates view code so you should be able to edit it separately.
>> On Dec 26, 2010, at 7:06 PM, Olga Zinoveva wrote:
>> Hey, everyone
>> I am wondering if people here have experience using MVC frameworks to build websites using PHP. I'd like to see if I could make use of one for a project I'm working on. Here are a few details:
>> 1. I am primarily interested in separating the presentation of the site (HTML) from the logic, or back-end, so that design work can be done completely separately in Dreamweaver without having to touch or see the PHP. I've never used frameworks before at all (my knowledge of web design is limited to CS50), so if I'm misunderstanding what I need, please let me know!
>> 2. I am working on the HCS servers (for now), so I'm not entirely sure if arbitrary frameworks are supported
>> 3. I need AJAX support
>> 4. I am working with a few other people, all of whom are familiar with PHP, but not Ruby or Python, so while I could consider RoR or Django, I'm also concerned about the learning curve of getting familiar with both a new language and a new framework, especially since we're working with a deadline in mind (January 30)
>> Please, let me know if you guys have any suggestions.
>> hcs-discuss mailing list
>> hcs-discuss at lists.hcs.harvard.edu<mailto:hcs-discuss at lists.hcs.harvard.edu>
> hcs-discuss mailing list
> hcs-discuss at lists.hcs.harvard.edu
More information about the hcs-discuss