这是我的表格
<?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',
),
));
}
}
这是给出以下错误
/home/dinuka/workspace/free_courier/vendor/ZF2/library/Zend/I18n/Validator/Float.php:49
Zend\I18n\Validator component requires the intl PHP extension
当我将电子邮件替换为数字时,它正在工作。请帮我。