- Posts: 36
- Thank you received: 2
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Can I write PHP code in Twig Template?
- OngJunYew
- Topic Author
- Offline
- Junior Member
Less
More
3 years 2 months ago #210774
by OngJunYew
Can I write PHP code in Twig Template? was created by OngJunYew
Hi,
In this thread, may I ask that can we write any php code in the Twig Template. Because when I am writing some php code in the Twig Template and click save it the php tag will disappear from <?php ?> to php ?>
Thank You
In this thread, may I ask that can we write any php code in the Twig Template. Because when I am writing some php code in the Twig Template and click save it the php tag will disappear from <?php ?> to php ?>
Thank You
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13935
- Thank you received: 2551
3 years 2 months ago #210780
by DenisChenu
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Replied by DenisChenu on topic Can I write PHP code in Twig Template?
No,
It's the reason of twig : don't give all PHP power with a simple editor.
It's the reason of twig : don't give all PHP power with a simple editor.
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
- OngJunYew
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 36
- Thank you received: 2
3 years 2 months ago #210781
by OngJunYew
Replied by OngJunYew on topic Can I write PHP code in Twig Template?
Hi,
Thanks for the reply. If the case, can I know what kind of functional programming code that can be work in Twig Template?
Thank You
Thanks for the reply. If the case, can I know what kind of functional programming code that can be work in Twig Template?
Thank You
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13935
- Thank you received: 2551
3 years 2 months ago #210789
by DenisChenu
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Replied by DenisChenu on topic Can I write PHP code in Twig Template?
See :
manual.limesurvey.org/Theme:Available_function
and twig.symfony.com/doc/2.x/
You can add your own function : manual.limesurvey.org/Theme:Available_fu...on#Adding_a_function if you have access to config php file.
and twig.symfony.com/doc/2.x/
You can add your own function : manual.limesurvey.org/Theme:Available_fu...on#Adding_a_function if you have access to config php file.
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.