Are you required to have a rule of each attribute for data to be collected? If I don't have a rule on a attribute it will not collect data. I'm wondering if this is normal?
Page 1 of 1
Form attributes rules
#2
Posted 08 May 2010 - 08:58 PM
jbomhold3, on 08 May 2010 - 08:32 PM, said:
Are you required to have a rule of each attribute for data to be collected? If I don't have a rule on a attribute it will not collect data. I'm wondering if this is normal?
You can use the 'safe' validator for attributes with no other rule.
Read more here (Safe Attributes in 1.1)
http://www.yiiframew...uide/form.model
/Tommy
#3
Posted 08 May 2010 - 08:59 PM
Ok ty mostly related question. Why are input fields with default values returning can not be blank errors.
--- Edit never mind code error on my side
--- Edit never mind code error on my side
Share this topic:
Page 1 of 1

Help













