Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Zend Framework 2 for a Zend Framework Newbie [closed]

I'd like to use ZF2 for an upcoming project. However, I find it really hard to understand the few tutorials that I've found out there. Most of them just tell you to put stuff in files without really explaining what everything is or any other option I may have.

Is there any book or tutorial for an absolute zf beginner?


Well, I started using Yii until ZF2 is released.

Yii has just amazed me. In two days I've been able to start building something. It is dead simple, yet powerful. They have great documentation and the framework is very easy to understand and use if you have a good knowledge of MVC and SQL. The documentation on their site is also very good. There are tutorials for absolute beginners. That I liked. Zend may be a more robust and powerful framework, but it's tediously painful to learn. It lacks the simplicity of Yii. I went nuts trying to understand all those configuration lines.

I followed every tutorial recommended in this thread for two weeks and gave up. Telling someone to just enter some code without explaining what it means or how it can be tweaked is not a good way to teach and promote a framework. I'll pick up ZF2 when it's released. I hope they make it friendlier. I hope the documentation also improves and goes from simple to complex examples. I really want to learn the ZF.

like image 757
user1336449 Avatar asked Apr 16 '12 21:04

user1336449


1 Answers

There are a number of articles you could read that could help:

  • Official documentation - has useful stuff - especially the view quick start
  • View Layers, Database Abstraction, Configuration, Oh, My! - Good intro to View Layer & Db
  • Getting started writing ZF2 modules - Good intro to modules
  • Modules in ZF2 - Another intro to modules
  • Using the ZF2 EventManager - introduction to event manager
  • PHP Constructor Best Practices And The Prototype Pattern - Zend\Db\ResultSet uses this
  • Using the ServiceManager as an Inversion of Control Container - How to use Zend\ServiceManager
  • Zend\ServiceManager configuration keys - Useful Zend\ServiceManager information

Also, these blog categories have useful info:

  • Matthew Weier O'Phinney's ZF2 articles
  • Rob Allen's ZF2 articles
  • Matthew Setter's Master Zend Framework

Books:

  • Slavey Karadzhov's Learn ZF2
  • Matthew Setter's Zend Framework 2 for Beginners

For source code:

  • http://modules.zendframework.com/
  • https://github.com/akrabat/ZF2TestApp
like image 87
Rob Allen Avatar answered Oct 21 '22 11:10

Rob Allen