Skip to content

Tarik Billa

  • Web Development
    • html
    • vue.js
    • laravel
    • css
    • javascript
    • jquery
    • node.js
    • php
    • asp.net
  • Programming
    • python
    • java
    • c
    • c++
    • c#
  • git
  • android

symfony-2.2

Symfony2 -> Twig -> Form -> Field -> Set rendered = true

April 8, 2024 by Tarik

Am I missing the question here? If you want to set a field as rendered even though it is not the simple call is: {% do form.x.setRendered %} If I misunderstood, my apologies.

Categories symfony Tags symfony, symfony-2.2, symfony-2.3, symfony-forms, twig Leave a comment

Check if ArrayCollection is empty

December 18, 2023 by Tarik

Doctrine ArrayCollection has a method isEmpty that will do what you are looking for. if ($suppliers->isEmpty()) { } Take a look at the documentation for it here

Categories symfony Tags arraycollection, symfony, symfony-2.2 Leave a comment

How to insert a Controller in Twig with “render” in Symfony 2.2?

September 26, 2023 by Tarik

In Symfony >= 2.2.x you should embed your controller like this: {{ render(controller(‘AcmeArticleBundle:Article:recentArticles’, { ‘max’: 3 })) }} Take a look at the documentation: Creating and using Templates UPGRADE-2.2

Categories symfony Tags symfony, symfony-2.2, twig Leave a comment

What is the Symfony firewall doing that takes so long?

March 24, 2023 by Tarik

I did some googling and I see that this guy, seems to have the answer to your question. After 15 minutes of research I ended up figuring out that this was due to the PHP PDO constructor (my Firewall is the first to connect to the database as I use Entities as users). With this … Read more

Categories php Tags php, symfony, symfony-2.2 Leave a comment

Tarik Billa

Software Engineer
tarikbilla@gmail.com
+8801884414000
  • Reuse a hash in YAMLApril 17, 2024
  • Dockerfile: how to redirect the output of a RUN command to a variable?April 16, 2024
  • How to cd to a directory with spaces in the directory name?April 16, 2024
  • Maximum MIME type length when storing the type in a databaseApril 16, 2024
  • What is the difference between Unit, Integration, Regression and Acceptance Testing?April 16, 2024
© 2026 Tarik Billa