0

Really new to symfony and I'm really confused...hoping to get some clarification here.

In my index.html.twig, I am trying to call a function called pinghosts Logic here.

Could someone please correct me and let me know how to call functions inside a twig file?

Thanks in advance

greeflas
  • 825
  • 1
  • 8
  • 20
  • 5
    Does this answer your question? [Call PHP function from Twig template](https://stackoverflow.com/questions/18665923/call-php-function-from-twig-template) – greeflas Apr 20 '21 at 22:21
  • First correction: don't use images in questions. – Cerad Apr 20 '21 at 23:08
  • Look at @greeflas comment, you'll find the answer within it – Architect Nate Apr 21 '21 at 00:40
  • Welcome to Stack Overflow. I would recommend reading [how to ask a question](https://stackoverflow.com/help/how-to-ask) on how to write a quality question. This helps for better understanding for the contributers. – localroot Apr 21 '21 at 08:30

0 Answers0