localhost8080
Well-known member
Hello, dear friends of this nice software.
Something is getting really lame here with v1.4:
I need to receive data from a callback function.
Within my method, I fill an array with data. before returning my array, I write it into my logfile to get sure the data gets populated.
Output in my logfile:
Then, in my template, on
I receive
looks like my brave array has been casted to a string? wtf!
and I can't access data with
which has been defined earlier:
Any ideas? I'm really sick of wasting time with absolutely basic functions like array output within a template
Thank you.
Something is getting really lame here with v1.4:
I need to receive data from a callback function.
Within my method, I fill an array with data. before returning my array, I write it into my logfile to get sure the data gets populated.
Output in my logfile:
Code:
2014-12-27 18:22:03 ADDIDTIONALDATA: Array
(
[key_1] => 01.01.2015
[key_2] => error_successful
[key_3] => bugware
)
Then, in my template, on
Code:
{xen:helper dump, {$additional_data}}
I receive
Code:
string(23) "
Array
"
looks like my brave array has been casted to a string? wtf!
and I can't access data with
Code:
{$additional_data.key_1}
which has been defined earlier:
Code:
<xen:set var="$additional_data">
<xen:callback class="Bugware_TemplateTools_ThreadHelper" method="getAdditionalData" params="{xen:array 'custom_fields={$thread.custom_fields}'}" />
</xen:set>
Any ideas? I'm really sick of wasting time with absolutely basic functions like array output within a template
Thank you.
Last edited: