40

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.

Muntasim
  • 6,689
  • 3
  • 46
  • 69
user1336449
  • 439
  • 1
  • 5
  • 8
  • Akrabat is your best bet, otherwise just read the framework. – markus Apr 16 '12 at 21:34
  • 2
    That's the tutorial I tried to follow. It basically tells you to put this an that, here and there. It doesn't really explain much. I guess it would've been easier if I knew ZF1 to begin with, but it doesn't make sense to learn it now when version 2 will be out soon. – user1336449 Apr 16 '12 at 21:41
  • I wrote a [blog post](http://www.papayasoft.com/2012/04/17/zend-framework-2-concepts-flexibility-complexity/) that addresses some of this. – David Weinraub Apr 17 '12 at 04:43
  • you're to early for that kind of documentation for ZF2, we have a bit of a wait yet until us newbies are going to be able to tackle this one. Even the official documentation is incomplete. – RockyFord Apr 17 '12 at 06:31
  • I don't think that ZF2 is at a useable stage yet, there is still a lot of functionality missing. Remember, it hasn't reached beta yet. I would say, that at the moment, it is for experienced developers only and probably not them. – vascowhite Apr 17 '12 at 06:47
  • It's actually at Beta3, http://packages.zendframework.com/ – Sjwdavies Apr 17 '12 at 10:08
  • Zend Framework 2 I think is different from Zend Framework 1, the tutorial from Akrabat is a very different approach if you compared it to the early version of ZF. The author approach a test driven development techqnique in building controller in ZF2. And on regarding the configuration , I think it is a bit hard to understand at first. – Allan Jikamu Nov 09 '12 at 02:34
  • Why was this closed? These sorts of questions seem to get closed a lot, which to my mind is plain dogmatism. This question, which perhaps not asked very well, has some pretty useful answers. StackOverflow is not a religion, stop acting as though it is. – Caspar Harmer Jan 08 '14 at 01:52

2 Answers2

49

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

Also, these blog categories have useful info:

Books:

For source code:

Rob Allen
  • 12,643
  • 1
  • 40
  • 49
2

Rob Allen ZF2 tutorial is now part of the official docs: http://packages.zendframework.com/docs/latest/manual/en/user-guide/overview.html

Also see this post https://stackoverflow.com/a/8894828/760703

Community
  • 1
  • 1
Nikolai Senkevich
  • 2,370
  • 2
  • 19
  • 29
  • 1
    Rob Allen's official tutorial is useful, but you have to read all the comments below it as errors are not corrected. Its also difficult to follow because the project has been given the same name as one of the objects (Album). I'm also unclear as to why some things are in lower case (album/album/) and which things are 'System' - i.e. Zend\Db\Adaptor\Adaptor. – jcansell Jan 15 '16 at 10:35