I think I may have found a bug...
I generated a boolean field in my table and I don't think I set it to be required. But when I d/l the code install it and load the form to enter new data, I get the following PHP error:
Notice: Undefined property: JDomHtmlFormInputRadio::$required in C:\wamp\www\[my app]\administrator\components\com_mycom\dom\html\form\input\radio.php on line 106
It appears the array is missing a required entry because when I added
'required' => true, to the array the error disappeared.
Here is where I added the require bit in the view form:
<tr>
<td align="right" class="key">
<label for="publish">
<?php echo JText::_( "MYCOM_FIELD_PUBLISH" ); ?> :
</label>
</td>
<td>
<?php echo JDom::_('html.form.input.bool', array(
'dataKey' => 'publish',
'dataObject' => $this->myuser,
'aclAccess' => 'core.edit.state',
'required' => true,
));
?>
</td>
</tr>
I'm also noticing a similar error for inputs:
Notice: Undefined property: JDomHtmlFormInput::$validatorInvert in C:\wamp\www\[my app]\administrator\components\com_mycom\dom\html\form\input.php on line 127