original_string: private function prepareDisplay()
      {
  
          \OWeb\manage\Events::getInstance()->sendEvent('PrepareContent_Start@OWeb\manage\Template');
  
          //We save the content so that if there is an error we don't show half displayed codes
          ob_start();
          try {
              \OWeb\manage\Controller::getInstance()->display();
          } catch (\Exception $e) {
              \OWeb\manage\Events::getInstance()->sendEvent('PrepareContent_Fail@OWeb\manage\Template');
              ob_end_clean();
              ob_start();
              $ctr = \OWeb\manage\Controller::getInstance()->loadException($e);
              $ctr->addParams("exception", $e);
              \OWeb\manage\Controller::getInstance()->display();
          }
  
          \OWeb\manage\Events::getInstance()->sendEvent('PrepareContent_Succ@OWeb\manage\Template');
  
          $this->content = ob_get_contents();
  
          \OWeb\manage\Events::getInstance()->sendEvent('PrepareContent_End@OWeb\manage\Template');
  
          ob_end_clean();
  
          //$this->content_heads = \OWeb\manage\Headers::getInstance()->toString();
         // \OWeb\manage\Headers::getInstance()->reset();
      }
code: private function prepareDisplay()
      {
  
          \OWeb\manage\Events::getInstance()->sendEvent('PrepareContent_Start@OWeb\manage\Template');
  
          //We save the content so that if there is an error we don't show half displayed codes
          ob_start();
          try {
              \OWeb\manage\Controller::getInstance()->display();
          } catch (\Exception $e) {
              \OWeb\manage\Events::getInstance()->sendEvent('PrepareContent_Fail@OWeb\manage\Template');
              ob_end_clean();
              ob_start();
              $ctr = \OWeb\manage\Controller::getInstance()->loadException($e);
              $ctr->addParams("exception", $e);
              \OWeb\manage\Controller::getInstance()->display();
          }
  
          \OWeb\manage\Events::getInstance()->sendEvent('PrepareContent_Succ@OWeb\manage\Template');
  
          $this->content = ob_get_contents();
  
          \OWeb\manage\Events::getInstance()->sendEvent('PrepareContent_End@OWeb\manage\Template');
  
          ob_end_clean();
  
          //$this->content_heads = \OWeb\manage\Headers::getInstance()->toString();
         // \OWeb\manage\Headers::getInstance()->reset();
      }
code_tokens: private function prepareDisplay ( ) { \ OWeb \ manage \ Events :: getInstance ( ) -> sendEvent ( 'PrepareContent_Start@OWeb\manage\Template' ) ; //We save the content so that if there is an error we don't show half displayed codes ob_start ( ) ; try { \ OWeb \ manage \ Controller :: getInstance ( ) -> display ( ) ; } catch ( \ Exception $ e ) { \ OWeb \ manage \ Events :: getInstance ( ) -> sendEvent ( 'PrepareContent_Fail@OWeb\manage\Template' ) ; ob_end_clean ( ) ; ob_start ( ) ; $ ctr = \ OWeb \ manage \ Controller :: getInstance ( ) -> loadException ( $ e ) ; $ ctr -> addParams ( "exception" , $ e ) ; \ OWeb \ manage \ Controller :: getInstance ( ) -> display ( ) ; } \ OWeb \ manage \ Events :: getInstance ( ) -> sendEvent ( 'PrepareContent_Succ@OWeb\manage\Template' ) ; $ this -> content = ob_get_contents ( ) ; \ OWeb \ manage \ Events :: getInstance ( ) -> sendEvent ( 'PrepareContent_End@OWeb\manage\Template' ) ; ob_end_clean ( ) ; //$this->content_heads = \OWeb\manage\Headers::getInstance()->toString(); // \OWeb\manage\Headers::getInstance()->reset(); }
docstring: Will get the output of the current controller to display it later on.
docstring_tokens: Will get the output of the current controller to display it later on .