Vorrei salvare un valore "10.2" o "10,2". Come faccio?
public function rules() { return array( ... array('prezzo', 'numerical', 'integerOnly' => true), ... ); }
Mi limito a togliere quel integerOnly o esiste una maniera di dire 'decimal' ... 'format' => array(10,2)? Non so: me lo sto inventando. Che mi suggerite? PS. Il camop è in verità un campo valuta.