Re: Baffling error when trying to put ACL check in beforeFilter

2007-10-30 Thread Claudia
In case someone else searches for it: Adding the line $this-Acl-startup($this); before the call to $this-Acl-check seems to work fine. Claudia On Sep 21, 10:03 pm, 2000Man [EMAIL PROTECTED] wrote: What was the final solution to this problem (putting parent::beforeFilter(); as first line of

Re: Baffling error when trying to put ACL check in beforeFilter

2007-09-21 Thread 2000Man
What was the final solution to this problem (putting parent::beforeFilter(); as first line of code in my AppController::beforeFilter doesn't work)? On 30 aug, 12:58, Jon Bennett [EMAIL PROTECTED] wrote: ...I think you may be right (from looking at dispatcher.php in the cake source code).

Re: Baffling error when trying to put ACL check in beforeFilter

2007-08-30 Thread Jon Bennett
...I think you may be right (from looking at dispatcher.php in the cake source code). However, that's got me wondering... how do any of those examples (including some in the bakery I seem to recall) that put ACL calls in beforeFilter ever work...? add parent::beforeFilter(); above you

Re: Baffling error when trying to put ACL check in beforeFilter

2007-08-29 Thread Paul
I'm pretty sure that a components startup method is called _after_ beforeFilter, this is why the component is not available. ...I think you may be right (from looking at dispatcher.php in the cake source code). However, that's got me wondering... how do any of those examples (including some

Baffling error when trying to put ACL check in beforeFilter

2007-08-28 Thread Paul
Hi there, I've scoured the manual, api, groups, whole internet etc. to try and find a reason why I'm hitting this problem all to no avail, so hopefully somebody can at least give me a hint what it might be! It's pretty simple - I've got a controller that, at the moment (for debugging purposes),

Re: Baffling error when trying to put ACL check in beforeFilter

2007-08-28 Thread Jon Bennett
As far I can tell, I don't think the 'startup' method in acl.php is being executed. This means _instance isn't being set, and so the line in question in acl.php fails: I'm pretty sure that a components startup method is called _after_ beforeFilter, this is why the component is not available.

Re: Baffling error when trying to put ACL check in beforeFilter

2007-08-28 Thread Paul
P.S. PHP 5.1.4, Cake 1.2.0.5427alpha, MySQL 4.0.17 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send