Fernando wrote: > > Hi, I have 2 tables.. > > students, and state... > > my table students has a field called state_id > > how to use scaffold to generate a <select tag> with the states from my > table states?
The easy way is in the state model, add the $hasMany = array("Student")
and in the Student model, add the $belongsTo = array("State").
For more informations
http://manual.cakephp.org/chapter/6
see the section 3.
HTH
Bye
Davide
signature.asc
Description: OpenPGP digital signature
