Saturday, February 8, 2014

Re: List box.

Here you go. Straight from the CakePHP book at the URL:
http://book.cakephp.org/1.3/en/The-Manual/Core-Helpers/Form.html#select

<?php  $options = array('M' => 'Male', 'F' => 'Female');  echo $this->Form->select('gender', $options)  ?>

Easy to find, so next time, try there first :)
Enjoy, John

On Friday, 7 February 2014 00:06:37 UTC+2, Diego Las Heras wrote:
Hello i am newbie here, and i am lloking for a easy list box example. Somone could pass me a code, for a simple list box. I mean the code of the view, controller... (all requerid for this)

Thanks!

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
 
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.

No comments: