Love Fuel?
Donate
About
Forums
Discussions
Login
FuelPHP Forums
Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
General
"valid_string" multiple rules are not working
chatii
May 2013
Hi
I'm using ORM package.
and settings properties...
'price' => array(
'data_type' => 'float',
'label' => 'Price',
'validation' => array(
'required',
'valid_string' => array('numeric', 'dots'), //<- not work
//'valid_string' => array('float'), // <- work
),
'form' => array('type' => 'text'),
),
but "dots" validation is not working.
in Core/Validation, _validation_valid_string method received (string) 'numeric' only...
allow only one flag?
// now, I use 'float' flag.
Harro
May 2013
You can only pass one value, so perhaps it has to be
'valid_string' => array(array('numeric', 'dots')),
?
chatii
May 2013
I try array(array('numeric', 'dots'), it works!!
Thank you!!
Harro
May 2013
Cool, problem solved!
;-)
Add a Comment
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Apply for Membership
Categories
All Discussions
5,089
General
↳ General
3,364
↳ Job Board
13
↳ Installation & Setup
214
Packages
↳ Oil
213
↳ Orm
700
↳ Auth
261
Development
↳ Tips and Tutorials
126
↳ Code share
145
↳ Applications
52
In this Discussion
chatii
May 2013
Harro
May 2013