1
I am wondering if it is possable to do this..
I am working on a couple of modules for my site, and am wondering if you can make a call to the template file from within a function statement?
ie.
le="color: #000000"><?php function start() { $xoopsOption['template_main'] = "add_raid.html"; } if(!isset($HTTP_POST_VARS['op'])) { $op = isset($HTTP_GET_VARS['op']) ? $HTTP_GET_VARS['op'] : 'main'; } else { $op = $HTTP_POST_VARS['op']; } switch ($op) { case 'add_editB': add_editbank(); break; case 'addbank': addbank(); break; case 'delbank': deletebank(); default: case 'main': default: start(); break; }
now this is just a snipit of the code
Thanks Dragon