Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-06-2008, 09:26 PM
Junior Member
 
Join Date: Mar 2008
Posts: 3
Default What's a resource

Hello,

Today I read through the manual about Zend_ACL. I read all about roles and resources and how you can register them and so on. I have an implementation of the ZF MVC concept running. What I don't understand is what an resource exactly is. Is it an controller? Is it an Action? Is it something in my model?
Can someone explain this to me?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 05-07-2008, 05:55 AM
Junior Member
 
Join Date: Apr 2008
Location: Canada
Posts: 8
Default

It means anything you want, it's a string identifier.

From the manual:

Quote:
Zend_Acl provides a tree structure to which multiple Resources (or "areas under access control") can be added.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 05-07-2008, 10:05 AM
Junior Member
 
Join Date: Nov 2007
Location: Elmshorn, Germany
Posts: 6
Send a message via ICQ to t-mow Send a message via Skype™ to t-mow
Default

In most cases, the controller/module will be the resource i think... the action is the privilege, which you can allow or deny to your roles.

So, example:
/blog/article/edit
-> blog = module
-> article = controller
-> edit = action

And then you may have a resource like blog_article and an privilege called "edit".. got it? :P
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 11:46 AM.