In this chapter, our goal was to understand a simple controller. The controller we built, along with a supporting cast of characters is complete without a model. More importantly, we've begun to understand that in Zend Framework, even when you are alone, you are in a crowd.

The controller we built does what it is supposed to do; it encapsulates all of the logic necessary to make the application work. It does not, however, encapsulate all of the code. For those of you new to working within a framework instead of just in a simple web page, that's going to be the hardest thing to get used to. Different pieces go in different places. Yes, that means when you are trying to find something, you will end up opening 4 different files just to find the one line of code you are looking to change. However, the ability to separate things into logical components and more importantly, reuse some of the components in future projects makes this worthwhile.

Finally, we introduced several new components so you could see how easy it really is to use pieces of Zend Framework. Honestly, the hardest part about learning any new framework is learning what pieces are there for you to use. Zend Framework makes using things like Zend_Session_Namespace very easy, however, if you don't know it's there, you will never use it.

Now, take a break, you've earned it. Grab a cup of joe and relax a bit. If you are just dying to read something, head over to and just read over the list of components in the core framework. I think you will be surprised at what's there.

Chapter 4

Was this article helpful?

0 0

Post a comment