|
|||
|
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! |
|
|||
|
"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 ![]() |
![]() |
| Thread Tools | |
| Display Modes | |
|
|