original_string: public function render()
      {
          $this->hook('pre-js-collection');
          if (isset($this->app->jquery) && $this->app->jquery) {
              $this->app->jquery->getJS($this);
          }
  
          if (!($this->template)) {
              throw new BaseException('You should specify template for APP object');
          }
  
          $this->hook('pre-render-output');
          if (headers_sent($file, $line)) {
              echo "<br />Direct output (echo or print) detected on $file:$line. <a target='_blank' "
                  ."href='http://agiletoolkit.org/error/direct_output'>Use \$this->add('Text') instead</a>.<br />";
          }
          echo $this->template->render();
          $this->hook('post-render-output');
      }
code: public function render()
      {
          $this->hook('pre-js-collection');
          if (isset($this->app->jquery) && $this->app->jquery) {
              $this->app->jquery->getJS($this);
          }
  
          if (!($this->template)) {
              throw new BaseException('You should specify template for APP object');
          }
  
          $this->hook('pre-render-output');
          if (headers_sent($file, $line)) {
              echo "<br />Direct output (echo or print) detected on $file:$line. <a target='_blank' "
                  ."href='http://agiletoolkit.org/error/direct_output'>Use \$this->add('Text') instead</a>.<br />";
          }
          echo $this->template->render();
          $this->hook('post-render-output');
      }
code_tokens: public function render ( ) { $ this -> hook ( 'pre-js-collection' ) ; if ( isset ( $ this -> app -> jquery ) && $ this -> app -> jquery ) { $ this -> app -> jquery -> getJS ( $ this ) ; } if ( ! ( $ this -> template ) ) { throw new BaseException ( 'You should specify template for APP object' ) ; } $ this -> hook ( 'pre-render-output' ) ; if ( headers_sent ( $ file , $ line ) ) { echo "<br />Direct output (echo or print) detected on $file:$line. <a target='_blank' " . "href='http://agiletoolkit.org/error/direct_output'>Use \$this->add('Text') instead</a>.<br />" ; } echo $ this -> template -> render ( ) ; $ this -> hook ( 'post-render-output' ) ; }
docstring: Renders all objects inside applications and echo all output to the browser.
docstring_tokens: Renders all objects inside applications and echo all output to the browser .