How do I load this form theme from my App Bundle? (symfony) -


i have app following directory structure in symfony 2.6

src/     app/         mainbundle/             forms/                 template.html.twig 

and i'm trying use form theme along bootstrap3 theme. according documentation can apply multiple themes. i've updated config.yml this:

# twig configuration twig:     form:         resources:              - 'bootstrap_3_layout.html.twig'             - 'appmainbundle:forms:template.html.twig' 

however, when add second resource blank page. must way i'm referencing template -- can reference 1 of built-in ones , works correctly.

thanks.

templates need saved under the

src/{bundle name}/resources/views/{subdir}/{twig filename} 

e.g.

appmainbundle:forms:template.html.twig:  src/app/mainbundle/resources/views/forms/template.html.twig 

Comments

Popular posts from this blog

javascript - Bootstrap Popover: iOS Safari strange behaviour -

Magento/PHP - Get phones on all members in a customer group -

session - Logging Out Using PHP -