Hi,

am a newbie in cakephp and trying to understand how things work.

i want to display list of city in a select box and the values will
come thru a table

how to do that ?

i have done following ........

in model ...

<?php
class City extends AppModel {
        var $name = 'Citys';
}
?>

in controller ...

<?php

class CitysController extends AppController {

        function index() {
                $this->set('cityList', $this->City->find('all'));
        }
}

?>

i want to know what shud be done in view ...

is there a quick and good way to do this ?

thanks in advance.

dev

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
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?hl=en

Reply via email to