Commit Graph

96 Commits

Author SHA1 Message Date
Fabien Potencier
8ca90d5233 fixed typo in phpdoc 2011-01-03 15:11:55 +01:00
Fabien Potencier
acbdbfca52 fixed typo 2011-01-03 14:59:27 +01:00
Fabien Potencier
5c6b594dae [TwigBundle] converted form filters to functions
|render_enctype -> form_enctype()
|render         -> form_field()
|render_hidden  -> form_hidden()
|render_errors  -> form_errors()
|render_label   -> form_label()
|render_data    -> form_data()
2011-01-03 14:45:16 +01:00
Fabien Potencier
e20a246eee [TwigBundle] fixed format_args configuration 2011-01-03 14:26:20 +01:00
Fabien Potencier
55b343b27c [TwigBundle] simplified code a bit 2011-01-03 12:34:14 +01:00
Fabien Potencier
2e9b8a4117 [TwigBundle] removed HelperTokenParser 2011-01-03 12:16:24 +01:00
Fabien Potencier
13bcf7cdac [TwigBundle] converted flash tag to a function 2011-01-03 12:14:54 +01:00
Fabien Potencier
3f492cae40 [TwigBundle] removed usage of HelperTokenParser for the js/css tags 2011-01-03 12:12:26 +01:00
Fabien Potencier
840bd8aacd [TwigBundle] removed usage of HelperTokenParser for the 'render' tag 2011-01-03 11:56:52 +01:00
Christophe Coevoet
da9d2e82f6 Added the Typehint needed by the type-hinting in Twig_Node 2011-01-02 16:25:18 +01:00
Bernhard Schussek
2daa6b5bfe [TwigBundle] Fixed display of DateFields in twig templates 2011-01-02 10:41:12 +01:00
Bernhard Schussek
d8b8ae0608 [FrameworkBundle][TwigBundle] Introduced field_row template for Form rendering 2011-01-02 10:41:00 +01:00
Fabien Potencier
62cd09e708 [TwigBundle] replaced the asset tag with an asset function (from {% asset css/foo.css %} to {{ asset('css/foo.css') }} 2010-12-31 16:59:44 +01:00
Johannes Schmitt
b4288459cc added ACL system to the Security Component 2010-12-31 09:25:53 +01:00
Fabien Potencier
8777a34234 [TwigBundle] updated templates for the latest version of Twig 2010-12-30 12:12:15 +01:00
Henrik Bjørnskov
59996bd8b9 [TwigBundle] Fixed form.twig calls to {% display %} 2010-12-30 12:06:52 +01:00
Fabien Potencier
77f5e7a5f3 [TwigBundle] updated functions to work with the latest version of Twig 2010-12-28 19:53:11 +01:00
Fabien Potencier
8e6a3849ee [TwigBundle] converted the special Twig Environment class to a DIC compiler class 2010-12-23 12:58:31 +01:00
Fabien Potencier
5d65f3edbd [TwigBundle] converted path and url tags to functions
{% url 'blog_post' with { 'id': post.id } %} -> {{ url('blog_post', { 'id': post.id }) }}
{% path 'blog_post' with { 'id': post.id } %} -> {{ path('blog_post', { 'id': post.id }) }}
2010-12-20 09:39:51 +01:00
Fabien Potencier
d935df036c [TwigBundle] removed unused tag and contenttag Twig tags 2010-12-20 09:05:16 +01:00
Fabien Potencier
bacb472e39 updated last commit to reflect Twig changes 2010-12-19 22:27:50 +01:00
Fabien Potencier
faac8e6ffd [TwigBundle] replaced the ifrole tag with a has_role function
Before:

{% ifrole "ROLE_ADMIN" %}
    Only show if you have the ROLE_ADMIN role...
{% endifrole %}

After:

{% if has_role("ROLE_ADMIN") %}
    Only show if you have the ROLE_ADMIN role...
{% endif %}
2010-12-19 22:07:15 +01:00
Fabien Potencier
6970a46b84 updated Twig templates for the new hash syntax 2010-12-14 09:46:24 +01:00
Fabien Potencier
02a92ec297 [TwigBundle] added autoescape option in Twig configuration 2010-12-12 14:41:00 +01:00
Lukas Kahwe Smith
30f231deaf moved default form template to the DIC config 2010-12-12 13:52:01 +01:00
Kris Wallsmith
3e02eafc70 Fixed visibility of PHPUnit setUp and tearDown methods. 2010-12-06 15:52:23 +01:00
Fabien Potencier
963cbdcee5 [TwigBundle] removed escaper and optimizer extension as they are now registered by default in Twig 2010-12-02 10:31:14 +01:00
Lukas Kahwe Smith
87846f1acd fixed typo in the translation for validations 2010-11-30 07:58:34 +01:00
Fabien Potencier
7ad3eca188 [TwigBundle] activated Twig Optimizer extension by default 2010-11-28 15:42:57 +01:00
Fabien Potencier
547eaa81f7 [TwigBundle] fixed option management for Twig_Environment 2010-11-27 11:36:11 +01:00
Fabien Potencier
07eceb7ade [TwigBundle] fixed ifrole tag when security context is not enabled 2010-11-26 18:06:04 +01:00
Francis Besset
5e150931c9 [TwigBundle] Fix call to a member function get() on a non-object 2010-11-23 22:04:51 +01:00
Fabien Potencier
a40d317f49 made a slight optimization 2010-11-23 18:44:04 +01:00
Bernhard Schussek
e0aa3f30a8 [Form] Improved FileField to store files in a temporary location in case validation fails 2010-11-23 06:51:30 +01:00
Fabien Potencier
67f6889287 [TwigBundle] added support for Twig_Template instances as argument to include tag 2010-11-21 09:33:35 +01:00
Fabien Potencier
e3551b5f87 [TwigBundle] renamed yaml filter to yaml_encode (to be coherent with json_encode) 2010-11-19 13:30:14 +01:00
Fabien Potencier
a323dd0e93 [TwigBundle] added filters from Code helpers 2010-11-19 10:14:45 +01:00
Fabien Potencier
c881329719 [TwigBundle] removed unneeded use statement 2010-11-19 09:54:52 +01:00
Fabien Potencier
84cf5698c5 [TwigBundle] fixed include tag to reflect the new syntax from Twig 2010-11-19 09:51:12 +01:00
Fabien Potencier
17c500e0f0 [TwigBundle] added a yaml filter 2010-11-19 09:50:32 +01:00
Bernhard Schussek
e0d6aad5f4 [Form][FrameworkBundle][TwigBundle] Introduced class FieldError to wrap form errors 2010-11-19 07:11:29 +01:00
Bernhard Schussek
6176063b30 [TwigBundle] Fixed variable reference in the errors block of the form.twig template 2010-11-19 07:11:20 +01:00
Bernhard Schussek
1bbdb5ec07 [Form][FrameworkBundle][TwigBundle] Refactored the PHP and Twig templating layer
Support for theming in PHP templates has been dropped.

True theming should support theme inheritance, e.g. mytheme <- table <- default.
Currently, the Templating component does not support such inheritance. As the
only purpose of the themes so far was to style field groups with tables or
divs, and because automatic rendering of field groups/forms through the render()
method is discouraged and only recommended for rapid prototyping, themes are
dropped for now.
2010-11-16 22:26:35 +01:00
Jordi Boggiano
aa1b2efb15 [TwigBundle] Base form templates now using div instead of tables 2010-11-15 15:04:56 +01:00
Jordi Boggiano
d45954af07 [Form][TwigBundle] Making sure all field types are rendered with the proper template 2010-11-15 14:54:11 +01:00
Jordi Boggiano
d94c581f42 [TwigBundle] fixed instanceof check to include all FieldGroup like classes 2010-11-12 17:55:30 +01:00
Fabien Potencier
d7d4880a90 [TwigBundle] updated filters for the latest version of Twig 2010-11-07 20:37:51 +01:00
jeff
52ec8752d8 When route_attributes is null an exception is raised. 2010-11-06 14:34:08 +01:00
Fabien Potencier
1e13ecb5f3 [TwigBundle] split the route tag to 2 tags: path and url 2010-11-03 18:15:54 +01:00
IamPersistent
ac8e35549e added initiating template in renderWidget 2010-11-03 15:07:26 +01:00