Re: Model like both ACO and ARO in ACL

2010-07-29 Thread Xander
I didn't find any predefined way to set the model as both Aco & Aro, so I made it Aco only and I added some code to afterSave() (when $created is true) and beforeDelete() callbacks wich creates and deletes aro nodes. On 29 Lip, 13:16, "marco.rizze...@gmail.com" wrote: > Can someone some suggestio

Re: $useTable = false - ignored

2010-07-21 Thread Xander
nything with that. On 21 Lip, 20:35, cricket wrote: > On Wed, Jul 21, 2010 at 9:55 AM, Xander wrote: > > > Second model is used to validate the GroupsController edit form. After > > validation ACL's Aco Tree or both Aro and Aco Trees are updated (users > > are in both

Re: $useTable = false - ignored

2010-07-21 Thread Xander
być puste', ), 'between' => array( 'rule' => array('between', 5, 255), 'message' => 'Pole musi zawierać od 5 do 255 znaków', ) ), 'parent' => array( 'notEmpty' => arr

Re: $useTable = false - ignored

2010-07-21 Thread Xander
thods in 99.9% of cases is wrong model > filename so it is not loaded at all. > > On Jul 21, 8:55 pm, Xander wrote: > > > > > Hello. > > I'm developing applications with user's and content's groups based on > > ACL trees. > > In my app I h

$useTable = false - ignored

2010-07-21 Thread Xander
Hello. I'm developing applications with user's and content's groups based on ACL trees. In my app I have 2 models without any tables. Models are used because I want to use automatic validation. First model is for ContactsController. There is no table used, so I set Contact:: $useTable to false and