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
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).
...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
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
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),
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.
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