bmidget/kohana-formo — Issue #155: Select driver forces empty option to appear
Author: d4rky-pl
Created: 2011-11-30 13:45:35+00:00
State: open

Select driver doesn't allow to choose if we really want this empty option which is bad, considering sometimes it is necessary to select something (for example a category for product in directly-from-ORM form).

fields() as $option): ?>
render()?>

I propose adding additional option show_empty (which defaults to true) to the select tag:

get('show_empty')) echo '
'; ?>