@NegoBlack That worked! Thank you very much. I'm not sure I would have
figured that out.

I notice that CakePHP will query a database when the page loads
regardless of if you issue a find method on the database or not. Is
there a particular reason it does this and can you stop CakePHP from
doing that when you don't need it to do so in a controller action.

Thanks!

On Jul 1, 7:37 am, NegoBlack® <[email protected]> wrote:
> I think you must create the model Site and configure it to do not use
> a table like this:
>
> class Site extends AppModel {
>     var $useTable = false;
>
> }
>
> On Jun 30, 1:25 pm, Tony <[email protected]> wrote:
>
> > I'm running into a problem in getting this error:
> > Error:  Database table sites for model Site was not found.
>
> > I don't have a model for Sites because I don't even have a table for
> > it.
>
> > I have a Sites controller but in the $uses array it is using the model
> > "User".
>
> > Can anyone help me here.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to