Skip to content

Commit

Permalink
Changed folder name to lowercase (best practises)
Browse files Browse the repository at this point in the history
  • Loading branch information
timhovius authored and weaverryan committed Mar 17, 2016
1 parent a66c49a commit ff32bd8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions cookbook/form/create_custom_field_type.rst
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ link for details), create a ``gender_widget`` block to handle this:

.. code-block:: html+twig

{# app/Resources/views/Form/fields.html.twig #}
{# app/Resources/views/form/fields.html.twig #}
{% block gender_widget %}
{% spaceless %}
{% if expanded %}
Expand All @@ -136,7 +136,7 @@ link for details), create a ``gender_widget`` block to handle this:

.. code-block:: html+php

<!-- app/Resources/views/Form/gender_widget.html.php -->
<!-- app/Resources/views/form/gender_widget.html.php -->
<?php if ($expanded) : ?>
<ul <?php $view['form']->block($form, 'widget_container_attributes') ?>>
<?php foreach ($form as $child) : ?>
Expand Down Expand Up @@ -167,21 +167,21 @@ link for details), create a ``gender_widget`` block to handle this:
# app/config/config.yml
twig:
form_themes:
- 'Form/fields.html.twig'
- 'form/fields.html.twig'
.. code-block:: xml
<!-- app/config/config.xml -->
<twig:config>
<twig:form-theme>Form/fields.html.twig</twig:form-theme>
<twig:form-theme>form/fields.html.twig</twig:form-theme>
</twig:config>
.. code-block:: php
// app/config/config.php
$container->loadFromExtension('twig', array(
'form_themes' => array(
'Form/fields.html.twig',
'form/fields.html.twig',
),
));
Expand Down

0 comments on commit ff32bd8

Please sign in to comment.