Dadparvar
Well-known member
Hi,
In a template, I need to write this array, in order to let my add-on works:
When I write it manually, it works (this part is a part of my js code in template)
But I need to read it from a php file. So I created a php file with this code:
and instead of writing that code manually, I added this in my js:
But it doesn't work.
Any Opinion will be appreciated.
In a template, I need to write this array, in order to let my add-on works:
Code:
[ 'song1', 'song2', 'song3' ]
But I need to read it from a php file. So I created a php file with this code:
PHP:
<?php
class Dadparvar_test_Helper_Filelist {
public static function helperTest() {
echo " [ 'song1', 'song2', 'song3' ] ";
}
}
?>
Code:
<xen:callback class="Dadparvar_test_Helper_Filelist" method="helperTest"></xen:callback>
But it doesn't work.
Any Opinion will be appreciated.