Re: Model Files do not get read in by the system.

2009-10-07 Thread AD7six
On 8 oct, 01:15, paullb wrote: > Thanks Miles J, I made that change and it worked perfectly. What you have > suggested here is definitly not intuitive from the naming conventions in the > link provided earlier. Please edit the sentance "The Model class OptionValue would be found in a file name

Re: Model Files do not get read in by the system.

2009-10-07 Thread Jon Bennett
Hi Brendan, > It was unclear that the model file was not being read and a result extremely > frustrating. Therefore, I would suggest (even if it is only a debugging > feature) that an error be displayed in the event that the model class is not > found. Thing is, by design, Cake attempts to creat

Re: Model Files do not get read in by the system.

2009-10-07 Thread paullb
Thanks Miles J, I made that change and it worked perfectly. What you have suggested here is definitly not intuitive from the naming conventions in the link provided earlier. It was unclear that the model file was not being read and a result extremely frustrating. Therefore, I would suggest (even

Re: Model Files do not get read in by the system.

2009-10-07 Thread Miles J
Model name should be singular and camelcase, yours is plural. The file should be singular and separated with underlines. Your problem however is that you dont need _model on the file name, it should just be segment.php. On Oct 7, 3:43 pm, paullb wrote: > Thanks for the replies. > > I had alread

Re: Model Files do not get read in by the system.

2009-10-07 Thread paullb
Thanks for the replies. I had already cleared out the cache, turned off caching at set debug level at 2. I checked out the convention page you provided and tried many different ways of naming things but none changed the result that the model class was entirely ignored. Would it be possible to

Re: Model Files do not get read in by the system.

2009-10-07 Thread AD7six
On 7 oct, 21:23, AD7six wrote: > On 7 oct, 19:46, brian wrote: > > > You're the second person today. Clear out app/tmp/cache/models/ and > > set debug > 0 to have Cake check the model schema on each request. > > That's not relevant. > > paullb - see conventions[1] your class isn't named correc

Re: Model Files do not get read in by the system.

2009-10-07 Thread AD7six
On 7 oct, 19:46, brian wrote: > You're the second person today. Clear out app/tmp/cache/models/ and > set debug > 0 to have Cake check the model schema on each request. That's not relevant. paullb - see conventions[1] your class isn't named correctly, and neither is your model file. hth, AD

Re: Model Files do not get read in by the system.

2009-10-07 Thread brian
You're the second person today. Clear out app/tmp/cache/models/ and set debug > 0 to have Cake check the model schema on each request. On Wed, Oct 7, 2009 at 9:51 AM, paullb wrote: > > > I have noticed that my model files do not get read by Cake -AT ALL-. I put > garbage characters into one file