I have an up-to-date copy of the Symfony2 sandbox and I'm working
through the various guides, but I'm having trouble with the Validation
guide.
I get an exception 'The service "validator" does not exist.', using
$validator = $this->container->getValidatorService(); or $validator =
$this->container->getService('validator');, so I'm guessing that I
need to enable that service somehow.
The only mention of any configuration settings in the guide is to
enable annotations by adding the following to the hello/config/
config.yml file:
web.validation:
annotations: true
If I do that, I get an exception 'The tag "web:validation" is not
defined in the "web" extension'.
If anyone knows how to set this up, please share it.
I know it's early days for the documentation, but if the sandbox
doesn't come already configured to enable us to follow the guides or
if the guides don't contain enough information on what we need to do
to follow them, then there doesn't seem to be much point in posting
them. Please don't take that as a criticism, I think the work being
done here is phenomenal, I just wish that the more average developer
like myself was afforded the opportunity to delve into the Symfony2
goodness without having to plough through source code to try to figure
out how to set things up (particularly where there are complex topics
(for me, at least) like Dependency Injection).
--
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