Updated Tutorial for Zend Framework 1.5
Zend Framework 1.5 has now been released to mark the occasion I have significantly updated my Zend Framework Tutorial! The tutorial was first released on 16th August 2006 and was written against version 0.1 of Zend Framework and had one major revision to bring in support for the ViewRenderer component.

The new tutorial produces exactly the same application as before, but now uses the new 1.5 goodies of Zend_Form and Zend_Layout, so you can see how these key components fit into a Zend Framework MVC application.
As always, when you find bugs and typos, please let me know and I'll fix them!

March 17th, 2008 at 14:49 #
I've waited for it for a long time :)
Can you also present an aplication that requires login... access rights that do the same thing as the "zend framework tutorial".
Thanks.
March 17th, 2008 at 19:14 #
There is an error in the sql to insert the data. The table created it called albums but the data goes into album.
I'm giving it a try now.
March 17th, 2008 at 21:56 #
Thanks Jonathan!
I've updated the zip files.
Regards,
Rob...
March 17th, 2008 at 22:21 #
Excellent.
Thanks for the great introduction. I took a look at your tutorial a couple of days ago when it was working around the 1.0.x release. I liked it then but taking another look now there is even more good stuff.
I'll definitely have to have a play with the form and layout components.
March 17th, 2008 at 22:49 #
Hi Turist,
My Zend_Auth tutorial gives the basics of providing a login system. It needs updating for 1.5, but the core usage of Zend_Auth hasn't changed.
Regards
Rob...
March 18th, 2008 at 00:51 #
It seems that the folder indent is not correct (page 2 of 19)
March 18th, 2008 at 08:05 #
Thanks Rob, I have problems with Zend_Auth because I use custom routes :(
I need to provide "language param" in the url because I want to build a multilanguage site.
In this case when I log into admin account I have the error with wrong controller specified :(
When you have time can you give some advices for how to build multilanguage sites with zend framework.
Thanks.
March 18th, 2008 at 14:24 #
Great! Nice work :-)
@Turist: Did you check Zend_Translate?
March 18th, 2008 at 21:06 #
Thanks Pieter, I'll look through Zend_Translate.
March 19th, 2008 at 10:13 #
I found 3 minor mistakes:
1. Page 2: Folder indent is not correct (thanx to Jason Qi) and we dont see layouts folder.
2. Page 10: Finally, we need some CSS styles: zf-tutorial/public/styles/site.css
should be zf-tutorial/public/css/site.css
3. Page 11: In our config.ini, the host, username, password and dbname parameters will
be grouped under $config->db->config.
Should be $config->db->params.
March 19th, 2008 at 21:23 #
Thanks Jason and Źmicier!
I have updated :)
Regards,
Rob..
March 20th, 2008 at 22:20 #
You are very welcome Rob! One more little thing:
In file \application\dbschema.sql, line 11
"INSERT INTO album (artist, title)"
should be
"INSERT INTO albums (artist, title)"
March 24th, 2008 at 22:47 #
Hi,
I'm following your tutorials and akrabat a long time and want to show my respect and thank for your great work. I'ld like to know how deep ACL and AUTH is covered by the book. I suppose, the focus of the book is more a beginners guide (correct me if I'm wrong) but as the ACL and Auth combination are very uncovered topics, some hint on an implementation suitable for a productive environment will be one more reason to buy.
April 3rd, 2008 at 10:38 #
Nice tutorial!!!
I have a doubt... I want to personalize the messages of mistake to spanish (I'm spanish)
Thanks!!!
April 8th, 2008 at 09:01 #
Hi,when I Click the 'Add new album' or 'Edit' or 'Delete',Notice: HTTP 404...
I don't know why?
April 8th, 2008 at 11:30 #
christie,
You have not set up mod_rewrite correctly.
Regards,
Rob...
April 23rd, 2008 at 15:27 #
Thanks so much for this tutorial - it's simply the best to get a ZF newbie up and running.
I'd be very grateful if someone could give a few pointers relating to this tutorial on how to implement decorators - I'm not really "getting it" when reading the manual..!
April 23rd, 2008 at 18:53 #
Kamm,
There's a separate post on this site about Zend_Form: Simple Zend Form Example.
Regards,
Rob...
May 28th, 2008 at 08:37 #
Sorry, I'm rookie to PHP and ZF, but want to learn both. I set all stuff and it shows that
Fatal error: Call to undefined method Zend_Config::asArray() in /home/webmaster/www/projects/album/index.php on line 24
I don't know what is a problem. thanks
May 28th, 2008 at 08:39 #
Dima,
It should be toArray() not asArray(). Which version of the tutorial are you using?
Regards,
Rob...
May 28th, 2008 at 09:34 #
Rob,so i download the last version of tutirial now that works.
I'm your fan! Big fan.
Thanks!
Dima
June 10th, 2008 at 07:02 #
Rob,
This is the very first tutorial which is really working on the first trial I do. Thank you so much.
June 10th, 2008 at 07:18 #
Hi Michael,
I'm glad it helped you!
Regards,
Rob...
June 11th, 2008 at 17:24 #
非常感谢你的分享,这是'找到最好的资料,期待'多,再次表示感谢!!!
July 12th, 2008 at 19:40 #
Hi Rob,
Can you please tell how to add pagination to this example.
September 12th, 2008 at 19:42 #
hello l'm new in it.
please
can l help me, zend_auth and zend_acl for zend framework 1.5
thenks....
October 9th, 2008 at 19:47 #
Hey rob, Amazing work! Thank you for this! Are you thinking to post any tutorial about log in ?
November 15th, 2008 at 21:29 #
Hi people, someone can tell me how do i make to when i just insert an album it redirects to the index where it lists the albuns and appears a message: A New album has been inserted sucessfully ? The redirect part it's easy ... but about the message ?
November 15th, 2008 at 22:31 #
Miguel,
You need the FlashMessenger Action Helper.
Regards,
Rob..