| Author |
Post |
|
|
#1 Sun Jul 01, 2007 10:03 pm
|
|
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.
|
|
|
#2 Mon Jul 02, 2007 9:42 am
|
|
Developer
Registered: Apr 2004
Posts: 2230
Location: Belgium
|
There's no content returned in main().
|
|
|
#3 Mon Jul 02, 2007 3:04 pm
|
|
Moderator
Registered: Oct 2005
Posts: 502
Location: Canada
|
Sometimes I just don't think lol. Thanks Dietrich.
|