Skip to content

Instantly share code, notes, and snippets.

@lphuberdeau
Created June 15, 2012 19:04
Show Gist options
  • Save lphuberdeau/2938207 to your computer and use it in GitHub Desktop.
Save lphuberdeau/2938207 to your computer and use it in GitHub Desktop.
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilder;
class FoobarType extends AbstractType
{
function getParent()
{
return 'field';
}
function getName()
{
return 'foobar';
}
}
## Template
{% block foobar_widget %}
{% spaceless %}
Hello World!
{% endspaceless %}
{% endblock %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment