twig
How to embed stylesheets with Assetic based on a value in the session
I want to embed different Stylesheet files with assetic in a twig template of a Symfony2 project. The used stylesheet depends on the theme setting of the user.[详细]
2023-03-22 04:41 分类:问答Twig Templating Engine for Mobile Devices
I\'m currently working on a web application and I\'m currently using TWIG as my templating engine for my \"view开发者_开发百科\" (MVC). I\'m just wondering, can we still use Twig if we\'re going to ma[详细]
2023-03-21 10:44 分类:问答Why Twig cannot use variable as index for array when I use set as capture?
In Twig, I can do a set in 2 ways {% set car = \'Honda\' %} or {% set car %}Honda{%endset%} where the 2nd way is a \'capture\'[详细]
2023-03-17 18:05 分类:问答Symfony2: Extending the twig date field
I would like to override the existing date field type so that I can use a js component. I tried so far:[详细]
2023-03-14 11:09 分类:问答Twig UTF8 Character Encoding - Symfony2
I am developing a news system for a french association\'s website with Symfony2. I\'m having troubles when it comes to displaying the accents and also HTML.[详细]
2023-03-12 08:00 分类:问答Twig "trans" tag broke after upgrading to 1.0
I\'m updating a PHP system using Twig with I18n extension to the latest twig 1.0.0-77. The problem is that Twig can\'t find Twig_Extension_I18n, when I move it and related files to the appropriate f[详细]
2023-03-08 01:47 分类:问答How can i pass parameters to a Symfony2 Twig block?
I want to generate table headers in a twig block and reuse them across the page, this page has about 5 different tables with roughly the same headers. The block code is such :[详细]
2023-03-07 00:37 分类:问答Symfony2 Twig extension
I have some problem to implement twig extension. I need to create my own filter (a substr filter). So I have thought to use twig extension.[详细]
2023-03-06 04:18 分类:问答Formatting money in twig templates
Are there any filters or something like that in twi开发者_运维百科g template engine to format money or numbers?The number_format filter has been included in the Twig core since the end of December 201[详细]
2023-03-03 08:35 分类:问答symfony2 textfield custom label
I had a little but unpleasant problem with symfony2 Field component. For example, I would like to outpu开发者_StackOverflow社区t array of form fields in twig template:[详细]
2023-02-22 17:44 分类:问答