title: joomla 1.6 : how $app object print out the entire page contents
body: <p>I was checking joomla 1.6 index.php and I found the following code at the last line </p>
  
  <blockquote>
    <p>echo $app;</p>
  </blockquote>
  
  <p>this prints the entire page contents.</p>
  
  <p>I just printed out the contents in this object using print_r() and I got the following details</p>
  
  <pre><code>JSite Object
  (
      [template:JSite:private] =&gt; stdClass Object
          (
              [id] =&gt; 6
              [home] =&gt; 1
              [template] =&gt; beez5
              [params] =&gt; JRegistry Object
                  (
                      [data:protected] =&gt; stdClass Object
                          (
                              [wrapperSmall] =&gt; 53
                              [wrapperLarge] =&gt; 72
                              [logo] =&gt; images/sampledata/fruitshop/fruits.gif
                              [sitetitle] =&gt; Matuna Market 
                              [sitedescription] =&gt; Fruit Shop Sample Site
                              [navposition] =&gt; left
                              [html5] =&gt; 0
                          )
  
                  )
  
          )
  
      [_language_filter:JSite:private] =&gt; 
      [_detect_browser:JSite:private] =&gt; 
      [_clientId:protected] =&gt; 0
      [_messageQueue:protected] =&gt; Array
          (
          )
  
      [_name:protected] =&gt; site
      [scope] =&gt; 
      [requestTime] =&gt; 2011-10-17 17:23
      [startTime] =&gt; 1318872200.5365
      [_errors:protected] =&gt; Array
          (
          )
  
  )
  </code></pre>
  
  <p>so how echo $app display all the site contents, it doesn't contains any HTML contents in the object.</p>
  
  <p>Thank you very much</p>