Thanks; I've tried that before, but I get:

Fatal error: Class 'App' not found

I've had to rely on loadModel() elsewhere for the same reason.

Is this a problem with my setup?


On Feb 26, 12:28 am, nate <[EMAIL PROTECTED]> wrote:
> Try App::import("Model", "Permission");
>
> On Feb 25, 5:21 pm, boyracerr <[EMAIL PROTECTED]> wrote:
>
> > This seems like something which is very very obvious, but I'm really
> > not having any luck finding the solution.
>
> > I'm trying to implement a Behavior for permissions checking in my
> > application. As such, I want to make the Permission model available
> > within the Permission_Checker behaviour. Because Permissions are very
> > complex, I don't want to just use an association; rather I want to use
> > specialised find() operations in the permissions model.
>
> > So, I want to make the Permissions Model available within the
> > behaviour. I've tried loadModel('Permissions'), but nothing seems to
> > happen (even if I load a nonexistent model there is no error message).
>
> > What should I be doing?
--~--~---------~--~----~------------~-------~--~----~
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 email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to