Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
S
Silex
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
common
Silex
Commits
332142f6
Commit
332142f6
authored
Dec 11, 2012
by
Igor Wiedler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document symfony/twig-bridge requirement for forms in twig templates
parent
5cfa54fc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
doc/providers/form.rst
doc/providers/form.rst
+12
-2
No files found.
doc/providers/form.rst
View file @
332142f6
...
@@ -79,6 +79,15 @@ Registering
...
@@ -79,6 +79,15 @@ Registering
"symfony/locale": "2.1.*"
"symfony/locale": "2.1.*"
}
}
If you want to use forms in your Twig templates, make sure to install the
Symfony Twig Bridge:
.. code-block:: json
"require": {
"symfony/twig-bridge": "2.1.*"
}
Usage
Usage
-----
-----
...
@@ -118,7 +127,8 @@ example::
...
@@ -118,7 +127,8 @@ example::
return $app['twig']->render('index.twig', array('form' => $form->createView()));
return $app['twig']->render('index.twig', array('form' => $form->createView()));
});
});
And here is the ``index.twig`` form template:
And here is the ``index.twig`` form template (requires ``symfony/twig-
bridge``):
.. code-block:: jinja
.. code-block:: jinja
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment