Console error: image not found

Twig
Some context: I'm using a .twig file to display some .png images, like this <img class="output-icons" src="{{ asset('path/to/images/output_icon_' ...
3 months ago

setting a placeholder attribute with translation in Symfony2 form input

Twig
I am using FOSUserBundle for managing my users. In order to register user, I reused the form of the bundle which meets my needs. Nevertheless, I neede...
3 months ago

Twig function for repeating template

Twig
I'm new to Twig and recently started a project. In this I use a Star Rating Display very often, which needs also some values, e.g the rating to displa...
3 months ago

Populate table in twig with for loop

Twig
I want to populate my table in twig with a for loop and some if statement. {% for user in users %} <td> {% if user.planningday == 1...
3 months ago

How to translate Symfony 3 forms?

Twig
Translating content in twig templates seems easy and straightforward: I run bin/console translation:update to populate translation files. The issue is...
4 months ago

Symfony 3.3 - uncaught Twig Runtime Exception when attempting to access a flash message in a template

Twig
I have a flashbag that's not guaranteed to actually have a message in it. If it does have a message, I'd like to display it, otherwise just continue ...
3 months ago

ng click and/or ng change

Twig
Morning, here is what happens. I made a dev, it was working fine, but only with firefox. When i tested it with chrome...it wasn't working at all. So...
2 months ago

How to access data from twig extension that returns array?

Twig
I have a custom Twig extension that returns an array: $base64Decode = new Twig_Filter('base64_decode', function ($string) { return unserialize(ba...
3 months ago

Twig - Access array[key +1]

Twig
I have a twig template to which I pass this parameter: mediasInAlbums = array( "albumId1" => array(media1, media2, media3...), "albumId2"...
2 months ago

display twig loop element in bolt

Twig
I would like to create this skeleton with html and twig : group actu 1 actu 2 group actu 3 actu 4 group actu 5 actu 6 3 gro...
2 months ago

Twig: use raw filter on form_widget attr

Twig
is it possible to use raw filter on form element attributes? I want something like: {{ form_widget(searchForm.query, { 'type': 'search', 'att...
3 months ago

Typehint (intellisense) objects within a twig loop

Twig
I've searched for a solution but I can't find any suitable for Twig, I know it's a quality of life thing. But it would make templating slightly easier...
3 months ago

block javascript don't work

Twig
i have this base.html.twig with materialize.ccs <!DOCTYPE html> <html lang="en"> <!--================================================...
2 months ago

Show in twig the result of a JOIN query in Symfony

Twig
I have 2 tables which are not related by ORM so I do theJOIN as follows: $dql="SELECT u, o FROM BackendBundle:Orders o JOIN BackendBundle...
2 months ago

Symfony Twig global variables

Twig
I'm trying to call some data in the root twig page and for that, I used twig global Variables. When i call the Service i becomme this Error (Type err...
2 months ago

Variable "url_resources" does not exist. Here I'm trying to display the values of form that i just entered above

Twig
enter image description hereVariable "url_resources" does not exist. Here I'm trying to display the values of form that i just entered above. It alway...
2 months ago

Using form_end in Symfony causes Internal server error

Twig
I recently cleaned my Twig templates in order to avoid deprecated calls on Symfony 2.8 and I got a strange behaviour. This is how my template looks l...
1 month ago

How to write this in twig format?

Twig
This part: <?php if (isset($quantity_taxation_curr) && in_array($currency['code'], $quantity_taxation_curr)) { ?> to become in twig f...
27 days ago

rendering controller action in symfony twig

Twig
Updating deprecated code and i have following problem with render tag > {% render url('_internal_main_navigation', {}) %} transaltes to {{ ren...
27 days ago

html link visible in email received twig

Twig
Any idea why the <a> link is still visible when I see it in an email? For example, I have this code in twig: Please click <a href="{{ bas...
1 month ago