Advice on Zend or CI for project
I have a new site that I am currently in the process of mapping out. The best way to put it would be that it will be A LOT like youtube.
I need openid support, and video upload support. There is no official openid librar开发者_如何学Cy for CI and the only one it has seems outdated / could become outdated.
However Codeigniter is fast <- pretty much the only thing keeping me from switching over to Zend.
I guess my real question is: is Zend's performance REALLY bad enough to keep me using CI. I know that one can use Zend libraries with CI, but if you are going to use parts of Zend, why not just use the whole thing?
Or would it be beneficial for me to "figure it out" with Codeigniter?
Well a couple things:
Performance of either framework out of the box shouldn't be a key concern. With this type of site (as you've described) you're going to have to optimize DB read/writes as well as cache like a mofo.
Given #1, i would use whatever you feel most comfortable with... there's no reason to make the project more difficult than it needs to be.
There is absolutely no reason to use Zend Framework in its entirety if you only need one component. Thats the reason its built like it is... so you can pick and choose. I routinely use components from Zend in my preferred framework, Symfony. Don't be afraid to mix and match.
Using ZF as full stack is going to be incredibly more time consuming that using CI because a.) you're more familiar with CI and b.) even ZF's full stack leaves A LOT to be desired - there still a ton of glue you're going to have to write, plus if you want an ActiveRecord like db interface with code generation you're going to have to hook in Doctrine, Propel, or whatever you like (I assume CI has an active record implementation out of the box?).
If you can afford the time to implement the OpenID library for CI, do so. Or, like prodigitalson said, you can use this single component from ZF [CI supports it, probably you'll need to do some modifications].
From my experience, developing with ZF isn't that easy, it takes time to learn and produce a well implemented web app.
精彩评论