Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
"valid_string" multiple rules are not working
  • 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.
  • You can only pass one value, so perhaps it has to be

    'valid_string' => array(array('numeric', 'dots')),

    ?
  • I try array(array('numeric', 'dots'), it works!!

    Thank you!!
  • Cool, problem solved! ;-)

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion