Thank you for your time.
i do as you describe in your reply:
/*
As far as I know, you have to:
use Symfony\Components\Form\Form;
and etc:
use Symfony\Components\Form\TextField;
use Symfony\Components\Form\PasswordField;
use Symfony\Components\Form\RepeatedField; */

now i got a 500 error like this:
The service "validator" does not exist.

in guide/validator document i saw this configuration:

# hello/config/config.yml
web.validation:
  annotations: true

so i do like the same

now i got new fatal error like this:

Fatal error: Uncaught exception 'InvalidArgumentException' with
message 'The tag "web:validation" is not defined in the "web"
extension.' in /var/www/symfony/src/vendor/symfony/src/Symfony/
Components/DependencyInjection/Loader/LoaderExtension.php:52 Stack
trace: #0 /var/www/symfony/src/vendor/symfony/src/Symfony/Components/
DependencyInjection/BuilderConfiguration.php(109): Symfony\Components
\DependencyInjection\Loader\LoaderExtension->load('validation', Array,
Object(Symfony\Components\DependencyInjection\BuilderConfiguration))
#1 /var/www/symfony/src/vendor/symfony/src/Symfony/Components/
DependencyInjection/Loader/YamlFileLoader.php(243): Symfony\Components
\DependencyInjection\BuilderConfiguration-
>loadFromExtension(Object(Symfony\Framework\FoundationBundle
\DependencyInjection\WebExtension), 'validation', Array) #2 /var/www/
symfony/src/vendor/symfony/src/Symfony/Components/DependencyInjection/
Loader/YamlFileLoader.php(61): Symfony\Components\DependencyInjection
\Loader\YamlFileLoader->loadFromExtensions(Object(Symfony\Com in /var/
www/symfony/src/vendor/symfony/src/Symfony/Components/
DependencyInjection/Loader/LoaderExtension.php on line 52

is the given configuration in guide/validator is wrong?

-- 
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to