selectTag ?empty optiont?

2006-09-07 Thread [EMAIL PROTECTED]

so i have
Array
(
[0] = erotyczne
[1] = pornografia
)

in view
 ?php echo $html-selectTag('File/category_id', $cats); ?

and first option is empty why ?
select name=data[File][category_id]  id=FileCategoryId

option value= nbsp;/option

option value=0  selected=selectederotyczne/option
option value=1 pornografia/option
/select


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



Re: selectTag ?empty optiont?

2006-09-07 Thread Fabian Schächter
Hi,look here:http://api.cakephp.org/class_html_helper.html#0a0a7c56c21b7d7352fd99158350dfc5Its default, but with
 ?php echo $html-selectTag('File/category_id', $cats,null, null, null, false); ? youl have a nice selec box...bye DerKlops

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake PHP group.  To post to this group, send email to cake-php@googlegroups.com  To unsubscribe from this group, send email to [EMAIL PROTECTED]  For more options, visit this group at http://groups.google.com/group/cake-php  -~--~~~~--~~--~--~---


Re: selectTag ?empty optiont?

2006-09-07 Thread Sohei Okamoto
The showEmpty option is true by default.?php echo $html-selectTag('File/category_id', $cats, null, null, null, false); ?It is in API
http://api.cakephp.org/class_html_helper.html#0a0a7c56c21b7d7352fd99158350dfc5Sohei

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake PHP group.  To post to this group, send email to cake-php@googlegroups.com  To unsubscribe from this group, send email to [EMAIL PROTECTED]  For more options, visit this group at http://groups.google.com/group/cake-php  -~--~~~~--~~--~--~---