views:

68

answers:

1

here is the code

 ob_start(array(&$dispatcher, 'outputCallback')); 
 include($file);
 ob_end_flush();

 function outputCallback($string) {
    if(ob_get_level() == 1) { 
        $static =& ParserStatic::getInstance();
        return $static->insertToppings($string);
    }
    return false;
  }

the problem is when i return $string it behaves ok, but when it executes the obejct assignment it goes blank screen, what's go wrong?

A: 

Have you tried checking your web server's error log to see if PHP is throwing an error? That should help you identify the cause of the problem.

Amber
damn! somehow it unload the Static class, thanks for the help mate!