Zend Framework newbie

How a noob tryin to learn Zend Framework

Starting with Zend Framework ? Oh yeah, baby.

A month  ago I decided I will learn a PHP framework.

I chose Zend Framework.

So I went to the quickstart quide (as of December 2011), and started to learn.  I have to mention here, that I think before someone wants to learn any PHP framework, you will need some basic undertanding of the OOP, so how to use classes or why we use classes, the static, self, parent keywords… and some more. You can find zillions of tutorials out there about the basic PHP related OOP concepts.

So, as I said I went to the quickstart guide of Zend Framework.

Well, I found this quickstart quide somewhat cumbersome, I learned how to set up the basic things like folder structure…etc, but when I arrived to the layout and model sections I started to confuse…

I didn’t even know what *is* a framework at all, and how it operates, and wasn’t  too good at programming, too.

After all, I stopped. But after 3 weeks I started again to understand this beast 😀

When I returned I started to search on Google for good ZF (Zend Framework) tutorials. Firstly, I  started to read phpeveryday.com’s short tutorials. I think these are very good for a noob like me for starting. But I think its very basic, so if someone wants to really understand how ZF work, well, then have to move on..

Rob Allen’s  online tutorial was the second source . I learned a lot of things from this, like ZF command line tools. But it was a little bit hard for me first .Maybe it was too short and covered too much things. I wanted a little “deeper” introduction, not  short writings on the subject.

After all I found Rob Allen’s (same as above)  Zend Framework in action book. Well this helped me a lot to understed a little more deeply the inner workings of ZF, and I’m still reading this book. What I found very useful are the “design patters” you can find these in the Appendix section of the book. I think no one can understand a framework without the knowledge of  these “design patters”. Design pattern examples are the “singleton pattern”,the “registry pattern” , “frontcontroller pattern”… The whole thing will be much more clearl after you understand these patterns, so they are very very very important. (In my opinion.)

On the other side there are some problems with this book.  The biggest is that it was written in 2009, its old.  Zend Framework has changed a lot since then. (The book using ZF version 1.6, but today its  at  version 1.11).

In this book for example the bootsrtap procedure is old. I’ts completely changed, as I found out, nowdays the developers using the Zend_Application class and .ini files to bootsrap the so called “resources”. The book writes down how to do the bootstrap process “manually”, so its not problem to read through coz you can understand better this process, on the other side Zend_Application do this bootstrap nearly “automatically”, and developers use this because its easier to maintain your program after..  So its easier to bootstrap with Zend_Application (from an .ini file), but harder to see the inner workings of the bootstrap process..

Let’s stop for a moment.  If you noticed, yes, my english is not the best. I’m from Hungary btw. But I’m tryin my best. I hope my minimum level english is at least understandable… if someone reading this blog at all.

So, to continue.  I had to understand what is this Zend_Application class, what is this doing, and how to do the bootstrapping with it. I found this excellent post from monzee how to migrate from the old bootstrapping code (from version 1.8)  to the newer (v. 1.9) which is now using the Zend_Application class.  So this article will tell you the transition from the old “made by manually” bootstrap process, to the “automatic” (from the .ini file) one, which is using as I said the Zend_Application class.

Of course I read a lots of blogs,  and the ZF documentation too in paralell, not just the above sources, to understand the bootstrap process, but these blogs/tutorials  were the main line, what I covered above. These are what I found the most useful.

Now I know how the bootsrapping process works, and I started to understand the whole thing, though I still have to learn a lot. But I am just at the beggining, the crucial part just starts now.

I’m writing this blog to myself to serve as a diary as I learn ZF. My other aim is to practice the english language, too 😉


2 responses to “Starting with Zend Framework ? Oh yeah, baby.

  1. Rob Alen February 12, 2012 at 11:36 pm


    I’m glad you’re making progress! As you are discovering, learning a framework is difficult at first as there’s so much to learn and there’s all the new terminology too.

    if you have any suggestions on how to make my tutorial more approachable for new people, I’d love to hear them. I’m also glad that you’ve found parts of Zend Framework in Action useful as I feel that whilst it doesn’t cover the new Zend_Application stuff, there’s still a lot of useful information in there 🙂

    If you’re into IRC, then I recommend hanging around in #zftalk on freenode and asking questions there.



  2. Gallo February 13, 2012 at 6:52 am

    Basically I started this blog 10 hours ago.
    When I woke up this morning I saw I got a comment.. cool!
    …Then saw the commenter name is Rob Allen…. what the heck??? 🙂

    Well…thanks for your comment Rob!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: