I have this in the view: <?php echo $form->create('Propiedad'); echo $form->input('pais_id', array('options' => $paises)); echo $form->input('provincia_id', array('options' => $provincias));
echo $form->input('ciudad_id', array('size' => '1')); echo $form->input('tipo_id', array('size' => '1')); echo $form->input('zona_id', array('size' => '1')); echo $form->input('ambientes', array('size' => '1')); echo $form->submit('Buscar'); ?> I have this in the controller. function search() { $this->layout = 'default'; // SE OBTIENEN LOS PAISES $pais = new Pais; $paises = $pais->find('list'); $this->set('paises', $paises); // SE OBTIENEN LAS PROVINCIAS $provincia = new Provincia; $provincias = $provincia->find('list'); $this->set('provincias', $provincias); } Can you help me to update the provinces according to country? era -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. 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