В джумле формирутся массив, при выводе при помощи print_r получается:
Array
(
[0] => stdClass Object
(
[id] => 102
[title] => banner
[module] => mod_custom
[position] => top
[content] => ...................
[showtitle] => 1
[params] => {"prepare_content":"1","backgroundimage":"","layout":"_:default","moduleclass_sfx":"","cache":"1","cache_time":"900","cachemode":"static"}
[menuid] => 0
[user] => 0
[name] => custom
[style] =>
)
)
вот надо вывести содержимое $module[0][content]
первое как понял, надо указать
$banner = json_decode( $module, true );
а вот что дальше.. чето всякие ошибки выскакивают..
echo $banner[0][0]["content"];
Warning: json_decode() expects parameter 1 to be string, array given in
Спасибо!