title: Yii RenderPartial Parameters
body: <p>I don't quite understand what the third and fourth parameters (return and processOutput) do in the renderpartial method. This is what I found on Yii's documentation:</p>
  
  <pre><code>public string renderPartial(string $view, array $data=NULL, boolean $return=false, boolean $processOutput=false)
   - $view    (string)    name of the view to be rendered. See getViewFile for details about how the view script is resolved.
   - $data    (array)     data to be extracted into PHP variables and made available to the view script
   - $return  (boolean)   whether the rendering result should be returned instead of being displayed to end users
   - $processOutput   (boolean)   whether the rendering result should be postprocessed using processOutput.
  </code></pre>
  
  <p>I've looked around but can't seem to get what exactly this documentation is trying to say.</p>
  
  <ol>
  <li>For the "return" parameter, it says that it controls whether or not the result is returned or displayed to end users. Aren't these two things (returning something to the user and displaying to the user) the exact same thing? </li>
  </ol>
  
  <p>-for example, I am trying to add stuff to a page by ajax. The server echos a json encoded renderpartial statement and the javascript on the client side inserts it by using jquery methods. When I set the "return" parameter to false, this entire ajax operation works and the stuff is successfully inserted into the location I specify. However, when I set the "return" parameter to true, the server echos the code as merely text and not html. The javascript on the client side then complains of several errors...This doesn't make any sense to me at all.</p>
  
  <ol>
  <li>What is postprocessing and where is this specified? I know that I didn't code up any "post processing", so where is this coming from?</li>
  </ol>
  
  <p>Any help would be much appreciated.</p>