We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

How to create an array of input?

How to create an array of input?

<?php echo $this->tag->NumericField(array("ValorCheque[]", "class" => "pagos", "min" => "0.00", "max" => "999999999.99", "step" => "0.01", "value" => 0.00, "id" => "fieldValorCheque", "onchange" => "SumarPagos();","onblur"=>"verificarTotal(this);"))

but does not work



11.6k

I think you should start "array" after setting the label


        $input = new \Phalcon\Forms\Element\Numeric('myField', array(
                'value' => '0.00',
                'class' => 'myClass',
                ... ,
                ...
            ));