Thanks, but what if it's part of the main app? That's my particular
problem.

On Nov 7, 11:59 pm, rtconner <[EMAIL PROTECTED]> wrote:
> I think you have to do..
>
> $uses = array('Pluginname.Modelname');
>
> On Nov 7, 10:54 pm, Aaron  Shafovaloff <[EMAIL PROTECTED]> wrote:
>
> > I have a plugin which has two models of its own. I've followed the
> > directions to creating a plugin to the T.
>
> > In the plugin's own app_controller file I have the following:
>
> > class PluginNameAppController extends AppController ...
>
> > This creates a problem. The main AppController file "uses" some
> > models, like User. But I get a missing model error because it attempts
> > to load models used by AppController in the plugin's models
> > subdirectory. The User model is in the main models directory, though.
>
> > Any thoughts? Is this just a deficiency of CakePHP 1.2 I'll have to
> > live with? Why can't I use models in the main app models directory?


--~--~---------~--~----~------------~-------~--~----~
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