Thursday, August 7, 2008

CakePHP + Zend Framework

We use CakePHP a lot here for our PHP development. I didn't give much though to the Zend Framework, primarily because the name 'Zend' leaves a very bad aftertaste in my mouth.

But I was quite intrigued to find out that ZF is more like a loosely coupled bunch of modules rather than a tightly integrated "framework" such as CakePHP. This approach appeals to me because it would be great to be able to grab just the components you want from whatever code library or framework and use it in your app.

Jonathan Snook described how you can do this with CakePHP and ZF, which is awesome. Here's how you're able to use some of the powerful ZF components in CakePHP's highly productive framework.

<rant>
I know there are lots of "frameworks" out there and it's easy to get into framework flame-wars and framework envy, but to me it's what you can do with it that matters. The tools you use should fit your style of working, not the other way around. If it doesn't, build it yourself. That's how Ruby on Rails came about... it was built to suit the way the creators liked to work.

So I don't understand this almost religious fanatisicm towards one framework or the other. Surely everyone has different ways of doing things? Or are most developers content on becoming just another clone of the framework creators? Maybe that's why there are so many same-y websites and web apps out there? How about being original for a change?

Be original, pick the best tool for the job and get on with your life...
</rant>

0 comments: