It's very simple.
The field in the table is a tinyint(1). It stores 0 or 1 (not null in my case).
Looking here: http://www.yiiframew.../api/CValidator
I would like to know which approach is better?
I thought using the match: CRegularExpressionValidator with the regular expression: '/^(0|1)$/'
I'd like some opinion.
Page 1 of 1
Whats the best boolean field validator?
Share this topic:
Page 1 of 1

Help












