Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Search found 3 matches
Smarty Forum Index
Author Message
  Topic: json encode - pass multiple bitmask constants for formatting
andrewFountain

Replies: 4
Views: 8580

PostForum: General   Posted: Fri Apr 26, 2019 4:38 am   Subject: json encode - pass multiple bitmask constants for formatting
Because it's takes a long time to get anything changed in the back end and we have so many modules without any underlying consistent framework so to add a new method to anything takes a very long time ...
  Topic: json encode - pass multiple bitmask constants for formatting
andrewFountain

Replies: 4
Views: 8580

PostForum: General   Posted: Wed Apr 24, 2019 5:10 am   Subject: json encode - pass multiple bitmask constants for formatting
Hi,

I'm wondering if there is any way to pass multiple bitmask constants when formatting using json_encode in a template.

The json structure has been assigned to the page as an associative array ...
  Topic: return value for {function} or define global variables
andrewFountain

Replies: 4
Views: 25401

PostForum: Smarty 3   Posted: Fri Aug 31, 2018 9:21 am   Subject: For future me
You can surround a function call with a capture to assign the output of the function to a variable in your template scope.


{function generateText}
function text
{/function} ...
 
Page 1 of 1
All times are GMT
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP