Archive for June 1st, 2007

h1

Leave an empty option at the top of a select element

June 1, 2007

In 1.2, when you use the $form->input() function to create a select element, it no longer creates the empty value at the top.
To get this back, simply pass the empty variable back and set it as true.


echo $form->input('category_id', array('empty' => true));