1
Hello,
I want to get a block's content and I tried to get it with getvar('content') with a code like below, but it doesn't work. I think I'm doing it with wrong way. How should I do this?
PS: I get bid and type values are correct but content is blank.
Thanks
Hirac
<?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>'; echo 'content:'.$myblock->getVar('content', 'N').'<br>'; ?>