|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
pedrotester Smarty Regular
Joined: 06 Jun 2019 Posts: 40
|
Posted: Mon Dec 16, 2019 5:56 pm Post subject: Difference between inline php function or a php modifier |
|
|
Example:
vs
Is one better than the other? why?
ty |
|
Back to top |
|
AnrDaemon Administrator
Joined: 03 Dec 2012 Posts: 1785
|
Posted: Wed Dec 18, 2019 7:01 am Post subject: |
|
|
Neither is better, the filter syntax is intended for cases where you want to actually output the result. |
|
Back to top |
|
pedrotester Smarty Regular
Joined: 06 Jun 2019 Posts: 40
|
Posted: Wed Dec 18, 2019 8:09 pm Post subject: |
|
|
ok so i will use the function method in a if, and the filter method for variables
thank you |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|