Created captcha type (this works, but still no image generation)

This commit is contained in:
Gregwar
2011-08-25 22:50:59 +02:00
commit 4e1892fc02
6 changed files with 175 additions and 0 deletions

8
Resources/config/services.yml Executable file
View File

@ -0,0 +1,8 @@
services:
# captcha type
captcha.type:
class: Gregwar\CaptchaBundle\Type\CaptchaType
arguments: [@session]
tags:
- { name: form.type, alias: captcha }

View File

@ -0,0 +1,4 @@
{% block captcha_widget %}
[{{ captcha_code }}]<br />
{{ form_widget(form) }}
{% endblock %}