UseBB Community

UseBB support, discussion and development

ACP module

Post Reply

Page: 1

Author Post
Moderator
Registered: Oct 2005
Posts: 502
Location: Canada
What is wrong with this?


if ( defined('RUN_MODULE') ) {

class usebb_module {

//
// Main view
//
function main() {

$content = 'Choose something';

}

function run_module() {

$content = $this->main();

return $content;

}

}

$usebb_module = new usebb_module;

}


I can't seem to see what is wrong with it.
Developer
Registered: Apr 2004
Posts: 2230
Location: Belgium
There's no content returned in main().
Moderator
Registered: Oct 2005
Posts: 502
Location: Canada
Sometimes I just don't think lol.

Thanks Dietrich.

Post Reply

Page: 1

UseBB Community is powered by UseBB 1 Forum Software