Created
June 15, 2012 19:04
-
-
Save lphuberdeau/2938207 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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