Solved

Zend_ACL usage

Posted on 2012-03-14
2
150 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 108

Expert Comment

by:Ray Paseur
Comment Utility
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
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to count occurrences of each item in an array.

728 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now