Hi,

i try to delete the empty item in the dropdownlist  and to insert an
entry like "Please Select your Country".

I found this 
http://cake-php.blogspot.com/2006/09/21-things-you-must-know-about-cakephp.html
------------------
Customizing HTML generated by the Helper

I needed to change the default <option> generated when I called $html-
>selectTag() to say something like "Please Select" rather than an
empty space (default). I also wanted radio buttons to have labels so
the user doesn't have to click exactly on the radio button itself but
can instead click anywhere on the text associated with it.
Create the file /app/config/tags.ini.php and add the following:
; Tag template for a input type='radio' tag.
radio = "<input type="radio" name="data[%s][%s]" id="%s" %s /><label
for="%3$s">%s</label>"
; Tag template for an empty select option tag.
selectempty = "<option value="" %s>-- Please Select --</option>"
You can get a full list of available tags in /cake/config/
tags.ini.php. I wouldn't recommend modifying that file, however,
because you could lose your changes when you upgrade CakePHP.
---------------

Is there an other possible solution ?

Thx

Oli


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

Reply via email to