hm... i'm not sure what you are trying to do. the conventions are
http://manual.cakephp.org/appendix/conventions . so you should name the
model CarMakeYear and the file car_make_year.php. However, it sounds
like you need a Car model, a Make model, and a Year model. Then use
cake associations and the {$model}->findAll() function to query the
database.

The associations you choose really depend on what you are doing and can
be overwritten at runtime, but an example might be:

Car
  hasOne Model, Make

Model
  hasMany Car
  belongsTo Make

Make
  hasMany Car, Model


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

Reply via email to