Re: [fw-general] How to implement Zend_Acl ?

2007-04-20 Thread Maurice Fonk
Thank you for your reply, It does help. I hadn't consired using the field names in the priviliges. That does make sense. Using your example, one can refine it to say, make an article readable by all, but create a privilige 'update_title', to allow some users to update it's title field. I gue

Re: [fw-general] How to implement Zend_Acl ?

2007-04-20 Thread Darby Felton
Hi Maurice, Zend_Acl also supports the idea of "privileges" upon resources. If you were to utilize such privileges for updating the username and for the timestamp, to follow your example, then you need not create a resource object for these. To use another simple example, imagine an article resou

Re: [fw-general] How to implement Zend_Acl ?

2007-04-19 Thread Maurice Fonk
Hello, I too would like to comment on this. I've been trying to use Zend_Acl to restrict access to my models. Basically, what I want is to make certain fields of a database row editable to some, but not to all. It's not that difficult to make some class extending Zend_Db_Table_Row implement Z

Re: [Fwd: Re: [fw-general] How to implement Zend_Acl ?]

2007-04-19 Thread Juan Felipe Alvarez Saldarriaga
Nice, thx :) Darby Felton wrote: Reply to all, reply to all... ;) Original Message Subject: Re: [fw-general] How to implement Zend_Acl ? Date: Thu, 19 Apr 2007 09:59:23 -0700 From: Darby Felton <[EMAIL PROTECTED]> To: Juan Felipe Alvarez Saldarriaga <[EMAIL

[Fwd: Re: [fw-general] How to implement Zend_Acl ?]

2007-04-19 Thread Darby Felton
Reply to all, reply to all... ;) Original Message Subject: Re: [fw-general] How to implement Zend_Acl ? Date: Thu, 19 Apr 2007 09:59:23 -0700 From: Darby Felton <[EMAIL PROTECTED]> To: Juan Felipe Alvarez Saldarriaga <[EMAIL PROTECTED]> References: <[EMAIL PROTE

[fw-general] How to implement Zend_Acl ?

2007-04-19 Thread Juan Felipe Alvarez Saldarriaga
Hey :) I want to implement Zend_Acl into my application, but I dont know how to put work that with a database model, there are some tutorial or page that I can see ? Another question about Zend_Acl, in the example to add resources: $acl->add(new Zend_Acl_Resource('newsletter')); //