0

これが私のフォームです

<?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

電子メールを番号に置き換えると、機能します。私を助けてください。

4

1 に答える 1