jasonhinkle / phreeze

Phreeze Framework for PHP
http://phreeze.com/
GNU Lesser General Public License v2.1
377 stars 166 forks source link

Boolean ? #194

Open gitdavidhunter opened 9 years ago

gitdavidhunter commented 9 years ago

Hi guys - I have a field set to bit(1), but phreeze renders it as a text input field. I changed it an int(1), but phreeze still renders it as a text input field.

What data type do I need to use in my column for phreeze to render a checkbox in the form ?

Thanks! dave

calexandrequeiroz commented 9 years ago

Great question!

jasonhinkle commented 9 years ago

Hey Dave, the generator is limited and doesn't recognize bit fields as being boolean - it's kinda hard for the generator to guess what the correct input would be in all cases. But, that doesn't prevent you from using a checkbox - it just requires some minor editing of the view template.