Re: Database Table not Found for a Model I haven't Created

2009-07-01 Thread NegoBlack®

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 t3proje...@gmail.com 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 cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Database Table not Found for a Model I haven't Created

2009-06-30 Thread Tony

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 cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Database Table not Found for a Model I haven't Created

2009-06-30 Thread brian

Check all of your models' associations. I think you probably have a
Site model listed somewhere.

On Tue, Jun 30, 2009 at 12:25 PM, Tonyt3proje...@gmail.com 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 cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Database Table not Found for a Model I haven't Created

2009-06-30 Thread Tony Bianco

I only have one model called User and one controller called
Sites.

And is there a way to keep CakePHP from running a query unless asked
to? Isn't that useless overhead that you don't need to have happen?


On Jun 30, 10:55 am, brian bally.z...@gmail.com wrote:
 Check all of your models' associations. I think you probably have a
 Site model listed somewhere.

 On Tue, Jun 30, 2009 at 12:25 PM, Tonyt3proje...@gmail.com 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 cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---