Roman,
Ricky has them wrong. You were correct initially using $this->Auth-
>allow(), not allowedActions.
Roman, what you should have is in your app_controller::beforeFilter(),
configure auth's defaults. And, in your products_controller, you
should have
public function beforeFilter() {
parent::beforeFilter();
$this->Auth->allow('show');
}
See the book for more info -
http://book.cakephp.org/view/247/AuthComponent-Methods#allow-382
-teh
On May 25, 1:25 am, Roman Brunnemann <[email protected]> wrote:
> Ricky Paz wrote:
> > If I were you, I would use $this->Auth->allowedActions(' * ') instead
> > of $this->Auth->allow. It works
>
> Hi,
>
> thanks for your answer, but I got a
>
> *Fatal error*: Call to undefined method AuthComponent::allowedActions() in
>
> when calling $this->Auth->allowedActions(' * ');
>
> Do I have to include something?
>
> Thanks a lot,
> Roman
--~--~---------~--~----~------------~-------~--~----~
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]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---