1
           
            
                
     
    
    Hello, 
I have a module for user referrals.
Inside this module I use a template where every user that logs can see their referrals (and some more data) in a list, I show this template with this code:
 $xoopsOption['template_main'] = 'referrals_list.html';
 include XOOPS_ROOT_PATH.'/header.php';
 $xoopsTpl->assign ('referrals', $referrals);
 $user_info = array ('uid' => $xoopsUser->getVar('uid'));
 $xoopsTpl->assign ('lang_referrals_lista', _PROMO_REF_LIST);
...
 include XOOPS_ROOT_PATH.'/footer.php';
How can I use this template on module administration, there xoopsTpl is not instantiated (not an object error)