Introducing Zend_Acl

June 21st, 2009

There’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.

 

17 Responses to “Introducing Zend_Acl”

  1. Karl Roos says:

    Doesn’t seem to be very easy to maintain the ACL in Zend.
    Nice screencast anyway ;) As always!

  2. jon says:

    @Karl,

    what makes you say it would be difficult to maintain? I’m curious :)

  3. Stephane Fillon says:

    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 !

  4. jon says:

    Thanks Stephane!

    That’s a great idea :)

  5. presidentua says:

    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 :)

  6. jon says:

    hahaha good point!
    btw, I think NetBeans’ template support is a little nicer. Thanks for the feedback :)

  7. DeluxZ says:

    Jon, when do you expect to put part 2 online ? Are you planning to do a little Zend_Auth too ?

  8. jon says:

    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.

  9. Stratocaster says:

    Hey,
    This was really cool little tutorial, I already got some ideas for my projects… looking forward to part 2.
    Great job!!

  10. Alexander says:

    Hello Jon,

    Nice screencast. Learning some more these days :)

    I can do something with Zend_Auth, it is pretty easy :)

  11. David says:

    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.

  12. jon says:

    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.

  13. Joe Devon says:

    FYI, if you have the xml file set up, you can run the unit tests from the command line with just “phpunit”

  14. rafael says:

    the video is broken

  15. jon says:

    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

  16. Milos says:

    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.

Leave a Reply

Desktop RSS feed iPhone + iPod