i have group's access rights setting page http://imageshack.us/f/600/accessrightslist.png/ . now i using Acl::check() to check whether an access item is allowed or denied, if allowed the checkbox is checked. I create my checkbox form using an helper this is my helper code http://pastie.org/5364102 .
Using Acl::check is so expensive, if i load my access rights setting page, my page have 150+ query. 150+ query was caused by Acl::check(). Because i call Acl::check() in every data item in my helper code. Then, i have an idea. My goal is just make the checkbox checked or unchecked. So i don't want to use Acl::check() again for my helper. I only use Acl::check() in my controller. So I make my own component to load all data from aros_acos table and replace Acl::check() call in my helper using my own method to check. and this is my component code http://pastie.org/5364107 . So, My problem is : If i use my own method inside my helper (not using Acl::check() ) : <code>if ($this->__checkPermission($item["Aco"]["id"], $this->permissions))</code> my Acl::check() inside my controller not working. if i use Acl::check() inside my helper: <code>if ($this->aclComponent->check($this->aroObject, $path))</code> my Acl::check() inside my controller is working good. So, this problem make my controller can not insert data to aros_acos. This is my controller code http://pastie.org/5364105 -- AccessRightsController and this is my array structure when data submitted http://pastie.org/5364125 Please help me, Thank you :) -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. Visit this group at http://groups.google.com/group/cake-php?hl=en.
