|
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 |
Lexis Smarty n00b
Joined: 11 Apr 2016 Posts: 1
|
Posted: Mon Apr 11, 2016 7:15 pm Post subject: $smarty.const vs |constant |
|
|
I use {$smarty.const.NAME} to access PHP constants. I can find this in the smary 3 documentation.
I was browsing through some templates and found a template where constants are accessed with {'NAME'|constant}.
I tried to find this method in the documentation, but cannot find it.
Can someone please tell me if this is the good method to use with smarty3, and where I can find it in the docs? |
|
Back to top |
|
AnrDaemon Administrator
Joined: 03 Dec 2012 Posts: 1785
|
|
Back to top |
|
U.Tews Administrator
Joined: 22 Nov 2006 Posts: 5068 Location: Hamburg / Germany
|
Posted: Wed Apr 20, 2016 12:26 am Post subject: |
|
|
That application must have implemented a custom modifier constant.
It's not standard Smarty. |
|
Back to top |
|
AnrDaemon Administrator
Joined: 03 Dec 2012 Posts: 1785
|
Posted: Wed Apr 20, 2016 1:39 pm Post subject: |
|
|
U.Tews wrote: | It's not standard Smarty. |
But it is standard PHP. |
|
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
|