Report message:*
Confirmation Code*
0 + 6 = ?  
Input the result from the expression
Maximum attempts you can try: 10
 
* = Required

can this be done?

Subject: can this be done?
by dragonfl on 2004/3/1 12:18:16

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.

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

Login

Who's Online

170 user(s) are online (51 user(s) are browsing Support Forums)


Members: 0


Guests: 170


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Oct 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits