This is my form
<?php
namespace Home\Form;
use Zend\Form\Form;
class CheckPriceForm extends Form
{
public function __construct($name = null)
{
parent::__construct();
$this->add(array(
'name' => 'distance',
'type' => 'Zend\Form\Element\Number',
'options' => array(
'label' => 'Distance',
),
));
$this->add(array(
'name' => 'weight',
'type' => 'Zend\Form\Element\Number',
'options' => array(
'label' => 'Weight',
),
));
$this->add(array(
'name' => 'submit',
'type' => 'Submit',
'attributes' => array(
'value' => 'Check Price',
),
));
}
}
It is give following error
/home/dinuka/workspace/free_courier/vendor/ZF2/library/Zend/I18n/Validator/Float.php:49
Zend\I18n\Validator component requires the intl PHP extension
When i replace Email for Number it is working. Please help me.