> How can I access to the params in model?

You can't. You're not supposed to. The params belong to the controller
- who processes the user action.

Your 'Library' model should not know or care whether the user is an
administrator. It just does whatever the controller tells it to, which
DOES know if the user is an administrator or not.

What are you doing in your model's beforeFind() that needs to be
deactivated for administrators?

On Jan 25, 4:11 pm, powtac <[EMAIL PROTECTED]> wrote:
> Hi red,
> I'm sorry this seems not to be working in the (1.2) model:
>
> Undefined property:  library::$params
>
> How can I access to the params in model?
> powtac
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to