Robust
Well-known member
Code:
<input type="checkbox" name="invisible" value="0" id="ctrl_invisible" />
So, this the above code is a checkbox option I have. I ran a Zend_Debug::dump in the controller. It's always returning 0 as the value, even if the checkbox is checked.
I use XenForo_Input to filter this as UINT (I have tried BOOLEAN already). It is meant to be stored into the database as TINYINT(1), however I have also tried as an unsigned integer.
Am I doing something wrong? I looked at XF's examples, and it seems like XF doesn't do checkboxes with default value 0, only checkboxes with default value 1. For default value 0 it seems to do radio options.