Hi,

i tried to reproduce the form example from the docs:

    $form = new Form('customer', $customer, $this->container-
>getValidatorService());
    $form->add(new TextField('name'));
    $form->add(new IntegerField('age'));

The classes are found if i add the "use" instructions, but further
used classes (like NumberFormatter, which is not explicitly used by
me) are not getting found:

    use Symfony\Component\Form\Form;
    use Symfony\Component\Form\TextField;
    use Symfony\Component\Form\IntegerField;

Exception:

Fatal error: Class 'NumberFormatter' not found in /var/www/vhost/
sandbox.local/src/vendor/symfony/src/Symfony/Component/Form/
IntegerField.php on line 39

autoload.php:

$loader->registerNamespaces(array(
    'Symfony'                        => $vendorDir.'/symfony/src',
    ...

Any advices? :)

Thanks

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to