Figured it out.

The default themes are in:

  \Symfony\Bundle\TwigBundle\Resources\views (see my link above)

To override, in your controller:

  $renderer = $this->get('form.factory')->createRenderer($form,
'twig');
  $renderer->setTemplate('MyAwesomeBundle:Form:default.html.twig');
  // Adds template in /src/My/AwesomeBundle/Resources/Form/
default.html.twig

  $this->render('...', array('form' => $renderer));

Then override "{{ block field__row }}" or anything in
"widgets.html.twig" as needed.

/me dusts off hands

On Apr 8, 12:26 am, ericclemmons <e...@smarterspam.com> wrote:
> I was noticing the default themes here:
>      https://github.com/bschussek/symfony/tree/experimental/src/Symfony/Bu...
>
> If I specify a theme, where exactly do I need to place these files and
> do I use a simple name or a bundle path?
>     $this->get('form.factory')->createRenderer($form, 'twig',
> 'SomeThemeName')
>
> (Specifically, my Bundle uses custom templates, so I'd prefer to keep
> the themes with the Bundle's Resources)

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

Reply via email to