how could i validate CHtml::dropdownlist();...........which is not a ActiveRecord
Page 1 of 1
how to validate elements other than active elements
#1
Posted 25 July 2009 - 11:43 PM
thanks to the hearts that wishes to clear my doubt or to help me
vikram
vikram
#2
Posted 29 July 2009 - 08:14 AM
Validation is built around model (can be CFormModel, not necessarily CActiveRecord).
#3
Posted 29 July 2009 - 11:45 AM
qiang, on 29 July 2009 - 08:14 AM, said:
Validation is built around model (can be CFormModel, not necessarily CActiveRecord).
no i miss typed it
active elements are validated by writing code in CFormmodel.........is there any place there the validation for nonactive elemnts should be kept
thanks to the hearts that wishes to clear my doubt or to help me
vikram
vikram
#4
Posted 29 July 2009 - 04:35 PM
nope. You need a model if you want to use the validation provided by Yii.The input field is not necessarily generated by activeXyz.
Share this topic:
Page 1 of 1