Могу ли я модель проверить поле, доза которого не существует в базе данных. Это не работает для следующего кода
Модель
'agree' => array(
'comparison' => array(
'rule' => array('comparison', 'equal to', 1),
'message' => 'Accept the Proposal',
'allowEmpty' => false,
//'required' => true,
//'last' => false, // Stop validation after this rule
//'on' => 'create', // Limit validation to 'create' or 'update' operations
),
),
.
вид
<div class="input checkbox">
<input type="hidden" name="data[Season][agree]" id="SeasonAgree_" value="0">
<input type="checkbox" name="data[Season][agree]" value="1" id="SeasonAgree">
<label for="SeasonAgree"></label> Seasons Proposal displayed is correct
</div>