3
$myblock->getVar('content'.. will only work for custom blocks.
try using $myblock->buildBlock() to get the array.
Quote:
<?php
require('..\..\mainfile.php');
include_once XOOPS_ROOT_PATH.'\class\xoopsblock.php';
$bid = 6;
$myblock = new XoopsBlock($bid);
echo 'bid:'.$myblock->getVar('bid').'<br>';
echo 'type:'.$myblock->getVar('block_type').'<br>';
$blockArray = $myblock->buildBlock();
var_dump($blockArray);
?>
i'm not sure what you are doing, but this may also be interesting to you.
http://xoops.instant-zero.com/modules/news/article.php?storyid=20
CBB / LatestNews / Publisher / XM-Spotlight
(ノ◕ヮ◕)ノ*:・゚✧