Alex Tech Adventures The webs best tutorials!

Welcome, Guest
Please Login or Register.    Lost Password?

ACL dynamic assertions
(1 viewing) (1) Guest
Go to bottomPage: 123
TOPIC: ACL dynamic assertions
#250
ACL dynamic assertions 2 Years, 1 Month ago Karma: 16
** This thread discusses the content article: ACL dynamic assertions **

alexanderrv
Administrator
Posts: 279
graph
User Offline Click here to see the profile of this user
Gender: Male tmthv2 alexchatonly@hotmail.com Location: Freeport, Bahamas Birthdate: 1989-04-14
The administrator has disabled public write access.
 
#315
ACL dynamic assertions 2 Years ago Karma: 0
Hi Alex,

Great tutorials. Found an interesting issue. When an action is being accessed that has an issue, it is going to throw an exception like the following:

Fatal error: Uncaught exception 'Zend_Acl_Exception' with message 'Resource id 'comment' already exists

I found that what was happening was that the setDynamicPermissions function was being called twice. In any event, if I placed a

if(!$this->has('comment')) around the addResource function, it took care of it.

Hope this helps
benawabe896
Fresh Boarder
Posts: 0
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#319
Re:ACL dynamic assertions 2 Years ago Karma: 16
Yes, thats because when performing internal redirect, preDispatch is ran again therefore hitting setDynamicPermissions a second time. Need to address that when I do my error handling.
alexanderrv
Administrator
Posts: 279
graph
User Offline Click here to see the profile of this user
Gender: Male tmthv2 alexchatonly@hotmail.com Location: Freeport, Bahamas Birthdate: 1989-04-14
The administrator has disabled public write access.
 
#333
Re:ACL dynamic assertions 2 Years ago Karma: 0
Hi Alex,

sorry to hijack this thread but wanted to ask if you could post the database structure etc for the tutorial.

I tried using the database structure and reproduce it watching your videos but I'm still getting errors.

Thanks,
Phil
Phil
Fresh Boarder
Posts: 1
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#341
Re:ACL dynamic assertions 2 Years ago Karma: 0
I had to change the code & sql to work. What error are you getting?
PHPKick
Fresh Boarder
Posts: 10
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: San Diego, CA USA
The administrator has disabled public write access.
 
#376
Re:ACL dynamic assertions 2 Years ago Karma: 0
Again thanks for the great video lessons!

Just a small question about the dynamic assertions: How would you solve the problem when you have an array of roles per user instead of just a single string?

Any suggestions?

Thanks!
Yorian
Junior Boarder
Posts: 29
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 123
Moderators: alexanderrv
You are here: Home Forum

Statistics

Members : 1388
Content : 42
Web Links : 1
Content View Hits : 190500

Poll

Interested in TinyBrowser and TinyMce plugin for ZF?
 

Who's Online

We have 31 guests online