Solved

Zend_ACL usage

Posted on 2012-03-14
2
158 Views
Last Modified: 2012-03-23
I have a newbie issue with ZEND function Zend_ACL. Is there anyone that might have used it?
I have a record in a table to define the user, his role, e-mail and password.
How can I use the ZEND_ACL function to implement an access control to certain pages. Some are only accessed by admin role users and other are for regular users to have access.
Can anyone give me a clue on how to use this?
Kind regards
LC
0
Comment
Question by:luciliacoelho
2 Comments
 
LVL 110

Expert Comment

by:Ray Paseur
ID: 37724342
I do not have any clue how to do this with ZEND_ACL, so no points for this response, please.  But I can show you an article that illustrates the theory used in PHP client validation and access control.  If you understand that, it may help you to get a grip on ZEND_ACL.
http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/PHP/A_2391-PHP-login-logout-and-easy-access-control.html

HTH, ~Ray
0
 
LVL 14

Accepted Solution

by:
Scott Madeira earned 500 total points
ID: 37724548
I haven't used that specific module (but it is on my to-do list for a project I want to start someday..)  Here is a tutorial that you may find helpful.  I looked through it and it seemed to make sense and shows using Zend_ACL in a ZF MVC project as well as a non-MVC application.

http://codeutopia.net/blog/2009/02/06/zend_acl-part-1-misconceptions-and-simple-acls/
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit (http://en.wikipedia.org/wiki/PHPUnit) and similar technologies have enjoyed wide adoption, making it possib…
The viewer will learn how to count occurrences of each item in an array.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question