1
hi there
i need to page out some php code needed for my theme.
i.E. the following
le="color: #000000"><?php $mod = $GLOBALS['xoopsModule']; $dirname = (isset($mod) ? $mod->getVar('dirname') :'system'); $GLOBALS['xoopsTpl']->assign( 'xoops_cmod', $dirname );
i put that into a php file named includes.php located in my theme folder and include it with the following at the beginning of my theme.html
le="color: #000000"><?php <{php}> include_once XOOPS_URL.'/themes/theme/includes.php'; <{/php}>
but i just got that error
le="color: #000000"><?php Fatal error: Call to a member function on a non-object in /www/htdocs/root/themes/theme/includes.php on line X
matter of that all is that i have to include some more tpl assigns, wrote some cookies and so on an i dont want to put that all into the theme.html
thanks in advanced for all responding