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 <[email protected]> wrote: > 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 have the correct naming convention for my example > here? > > > > AD7six wrote: > > > On 7 oct, 19:46, brian <[email protected]> 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 > > [1]http://book.cakephp.org/search/conventions > > -- > View this message in > context:http://www.nabble.com/Model-Files-do-not-get-read-in-by-the-system.-t... > Sent from the CakePHP mailing list archive at Nabble.com. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
