Hi Jeremy, yes I did set Index and FK relations.

hi, alaxos.. Thanks for creating such a wonderful plugin. It has
helped me a lot. I am using alaxos_acl_1.0.6 and yes, I enabled "true"
for ajax in boot loader and its good in performance now.  At first i
thought the problem could be due to $this->AclReflector-
>get_all_actions(); that reads the class and action from controller
class rather than from db. Then I end up with check() function. I have
changed some basic modification to the admin_ajax_role_permissions()
for a display of aliases along with the ctrl/action. I did the below
given changes.

http://pastebin.com/L1b3pDfY

And now i have the action's PK id in $action. I created a coloum
called "custom_alias" in the acos table. That will hold all the
alternative name. For inserting the alternative name i have created a
separate screen. But this is little bit slow compared to the existing
one (non alternate names with ajax enabled)

Though it is fast i will go on with in the process of learning
caching. I will post a separate thread for learning cache.

On Sep 20, 11:35 pm, alaxos <[email protected]> wrote:
> Hi,
>
> It seems that you don't use the latest version of the plugin, because
> in this one the code you mention is not on line 258.
>
> I'm not sure which one you use, but since version 1.0.4 (january
> 2011), the roles permissions page can be loaded with Ajax. Basically
> it means that instead of one very heavy query, there is one query for
> each controller / role couple. With many controllers and actions, it
> is still a heavy load for the server, but at least it should prevent
> server timeouts.
>
> To enable Ajax loading, just set the acl.gui.roles_permissions.ajax
> parameter to true.
>
> Cheers,
> nIcO
>
> On 20 sep, 11:57, sathyashrayan <[email protected]> wrote:
>
>
>
>
>
>
>
> > Group,
> >   I used Alaxos ACL plugin found here..
>
> >http://www.alaxos.net/blaxos/pages/view/plugin_acl
>
> > In my project i have more than 165 actions and 55 controllers,
> > including ADD, EDIT ect. When I clicked role wise permission in the
> > plugin (admin/acl/aros/role_permissions) i get
>
> > Fatal error: Maximum execution time of 60 seconds exceeded in [path]
> > \cake\libs\model\datasources\dbo\dbo_mysql.php on line 600
>
> > I know i could just use set_time_limit(0); in the action
> > admin_role_permissions() of [path]\app\plugins\acl\controllers
> > \aros_controller.php
>
> > But when I went on commenting out some lines in that controller, i got
> > the point where the execution exceeds the limit. If i am not wrong
> > then it is on this line
>
> >  $authorized = $this->Acl->check($role, $full_action); Line-258
>
> > The I saw this function in core cakephp [path]\cake\libs\controller
> > \components\acl.php on the 
> > functionhttp://book.cakephp.org/view/1249/Checking-Permissions-The-ACL-Component
>
> > I see two foreach after Set::extract() call. Can anyone point out
> > where the execution exceeds the limit. Thanks for any help.

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to