Dependents Combo's example?

2011-08-01 Thread eraonline
Can you help me with a Dependents Combo's example? 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, se

Help with Query

2011-08-01 Thread eraonline
I have these tables: Videos id name tour_id Tours id date city_id Cities id name I want to search the videos to show this data in a grid: Videos.name Tours.date Cities.name Can you help me? era -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out

Re: Combos Country & Province

2011-07-29 Thread eraonline
I have this in the view: 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(

Re: Combos Country & Province

2011-07-29 Thread eraonline
I developed and tested the code. I modified the models: array( 'className' => 'Provincia' ) ); var $validate = array( 'nombre' => array('rule' => 'notEmpty') ); } ?> array( 'className' => 'Pais' ) ); var $validate = array( 'nombre' => array('rule' => 'notEmpty') );

Re: Combos Country & Province

2011-07-28 Thread eraonline
Is it ok? array( 'className' => 'Provincia' ) ); var $validate = array( 'nombre' => array('rule' => 'notEmpty') ); } ?> array( 'className' => 'Pais' ) ); var $validate = array( 'nombre' => array('rule' => 'notEmpty') ); } ?> -- Our newest site for the communit

Combos Country & Province

2011-07-28 Thread eraonline
Hello! I have two combos: Countries and Provinces. When the user select an country, I want to filter the provinces. Can you help me to build the Model, Controller and View? Thanks! era -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakeP

Re: Checkbox mĂșltiples + HABTM

2011-07-27 Thread eraonline
it's working the problem about save with HABTM!!! My problem was: $pharmacy = new Pharmacy(); $this->set('pharmacies', $pharmacy->find('all')); The value of the parameter 'all' wasn't working. The next works!!! $pharmacy = new Pharmacy(); $this->set('pharmacies', $pharmacy->find('all')); or

Re: Multiples Checkbox and hasAndBelongsToMany (HABTM)

2011-07-27 Thread eraonline
Ben it's working the problem about save with HABTM!!! My problem was: $pharmacy = new Pharmacy(); $this->set('pharmacies', $pharmacy->find('all')); The value of the parameter 'all' wasn't working. The next works!!! $pharmacy = new Pharmacy(); $this->set('pharmacies', $pharmacy->find('all'));

Re: Multiples Checkbox and hasAndBelongsToMany (HABTM)

2011-07-27 Thread eraonline
Thank you very much!!! It's working and it's magic like some things in Cake... I have problems with save with HABTM, I published other post about it called "Checkbox mĂșltiples + HABTM". Can you help with it? Thanks! era -- Our newest site for the community: CakePHP Video Tutorials http://tv

Checkbox mĂșltiples + HABTM

2011-07-26 Thread eraonline
Hello. I can't save multiple checkbox in HABTM. My code is: MODEL array( 'className' => 'Pharmacy' ) ); var $validate = array( 'name' => array( 'rule' => 'notEmpty' ), ); } ?> array( 'className' => 'Turn', 'joinTable' => 'pharmaci

Multiples Checkbox and hasAndBelongsToMany (HABTM)

2011-07-26 Thread eraonline
Hello! I want to show in the view a list of checkbox of Pharmacies to assign to a Turn. Example: Turn: INPUT TEXT Pharmacies: CHKBOX1 CHKBOX2 CHKBOX3 Can help me with this? Thanks! eraonline -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the