• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1744
  • Last Modified:

cakephp or zend? with advantage and disadvantages for both

Hi e's

I want to start php development with the other framework. Currently i am using PEAR for my applications.

I have searched for various search in web and finally stuck to zend and cakephp.

So i want know that what are the advantages and disadvantages of both over each other.

i am experienced developer, but i am taking a care for selecting the framework for my development, that's why i am here.

Avinash Zala
Avinash Zala
2 Solutions
I personally use CakePHP for all of my development projects at work and at home.  CakePHP takes care of a lot of things for you and is ready to go "out-of-the-box", so to speak, so you can get on with coding your app right away.  Zend is more of a library of useful classes, much like PEAR, and you can pick and choose which you use, but you have more work to do to "get it up and running".

Hope this helps.
While zend is just a BIG library, cake brings it's "bake" that can save you a lot of time and you will never have to write queries ever again, even when you will need huge recursive selects. For example, if you want to select a category with all it's products and all the images for the products, with the "Containable behaviour" you will only write something like this:

$category = $this->Category->find('first', array('conditions' => array('Category.id' => $id), 'contain' => array('Product' => 'Image')));

the result will be:

array('Category' => array('id' => 1, 'name' => 'Categoru'),
          'Product' => array(0 => array('id' => 1, 'name' => 'product name', 'Image' => array(etc....)),
                                        1 => array('id' => 2, 'name' => 'product name 2', 'Image' => array(etc....))));

The reason why to choose cake are more than this. The fact is that on the other side, zend has a lot of usefull libraries, but it's not such of a framework as cake is.
Avinash ZalaWeb ExpertAuthor Commented:
your information helps me to take decision.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now