Introducing Zend_Acl
June 21st, 2009There’s been a lot of talk on Twitter about doing some videos about Zend_Acl, so by popular demand, here’s part 1 of a 2 part series about Zend_Acl.
I’m going to do this with the unit testing framework we setup in the last video tutorial so that I can focus on the meat of Zend_Acl and its power.
If you don’t have unit testing setup locally, feel free to grab the source here, or a zipped version of the project.

Doesn’t seem to be very easy to maintain the ACL in Zend.
As always!
Nice screencast anyway
@Karl,
what makes you say it would be difficult to maintain? I’m curious
Good job as usual!!
When you have some time, can you make a screencast on multiform (ie: a multi page registration process)..
keep the good job !
Thanks Stephane!
That’s a great idea
Jon,
about Class Template
in NetBeans Template is easy editing. Maybe, it is also easy in ZendStudio. Each time, when you create new class you are putting ‘{‘ on next line and deleting ending “?>”.
Edited template will save you some time
And maybe, we will see next screencast a little faster.
Thx
hahaha good point!
btw, I think NetBeans’ template support is a little nicer. Thanks for the feedback
Jon, when do you expect to put part 2 online ? Are you planning to do a little Zend_Auth too ?
It should be up by the end of the week. I’m not super familiar with Zend_Auth… but it’s definitely something I’d like to cover.
Hey,
This was really cool little tutorial, I already got some ideas for my projects… looking forward to part 2.
Great job!!
Hello Jon,
Nice screencast. Learning some more these days
I can do something with Zend_Auth, it is pretty easy
Jon,
Thanks a lot for these tutorials. Alexander is right about Zend_Auth. It is pretty easy if you sit down and reverse engineer the code in your head.
I will be attempting to implement it with Zend Acl by creating a plugin that examines each request to verify the role of the current user and deny/allow access per the Acl classes. When I get done I wouldn’t mind making a tutorial myself if you don’t get to it.
What program do you use to create these “zendcasts” and would you accept something that is not quicktime?
Best Regards.
Hi David,
I’d be curious to see your implementation! I use Screenflow for zendcasts. If you’re thinking of doing a video, any video format of 800 x 540 or above is acceptable, since I’ll have to scale it and put the bumper at the beginning anyways. Email me for details.
FYI, if you have the xml file set up, you can run the unit tests from the command line with just “phpunit”
Link for download: http://www.zendcasts.com/wp-content/uploads/2009/06/zc26-introducing-zend-acl-screen.mov
the video is broken
Hi Rafael,
It’s working for me… do you have flash installed? If you’re still having trouble, try accessing the file directly via the podcast.
Thanks,
-
Jon
Hi Jon,
i dont know is this the right place to ask a question, but i hope someone will answer me.
How can I set timeout for session (and what is the default timeout – 3600s?)? I am using Zend_Acl and Zend_Auth.