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


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-17-2008, 12:44 AM
Junior Member
 
Join Date: Feb 2008
Posts: 18
Default ACL on a web game?

Hello, I recently started on ZF and have been reading the manual for afew days, but now the issue is combining the ACL with DB

I think I already have a vague idea on how to do it. I plan to put the resources on the DB and another table with users access permissions

The game is a role playing game, just a hobby to pass time.

The thing is, I don't know if I'm right on mark or far away. Another thing is how should I throw the errors if X or Y user is not supposed to be there.

Thanks!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-18-2008, 10:26 AM
Member
 
Join Date: Aug 2007
Location: Sweden
Posts: 52
Send a message via MSN to Leif.Högberg
Default

"Another thing is how should I throw the errors if X or Y user is not supposed to be there."
If a user ends up on a page they shouldn't be I:
1) store a message explaining what happend in a session var. (ie "You don't have permisson to access x.")
2) redirect the user to another page
3) display the message stored in step1.

For step 1 I use a class similar to the zf built in flashMessenger (action helper)

As for the acl, your suggestion will work. Theres a million ways to do it. Just continue on your current path. As you get more comfortable with the code you can always go back and tweak it.

Good luck with your game
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-19-2008, 07:55 PM
Junior Member
 
Join Date: Feb 2008
Posts: 18
Default

Thanks for the good luck, now I have been wondering a lot of things but I guess I'll take it easy before having my brain go boom.
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 04:27 AM.