title: Joomla 3: How do I use the raw format without adding format=raw to the URL?
body: <p>I would like to load view.raw.php as a raw view just like if I has appended view=raw to the URL. But I would like to do it without adding view=raw to the URL.</p>
  
  <p>I have tried the following inside my main controller and none work:</p>
  
  <p>First I tried this:</p>
  
  <pre><code>JFactory::$document = null;
  JFactory::getDocument();  
  </code></pre>
  
  <p>Then I tried this:</p>
  
  <pre><code>$input = JFactory::getApplication()-&gt;input;
  $input-&gt;set('format', 'raw');
  </code></pre>
  
  <p>And this:</p>
  
  <pre><code>$_REQUEST['format'] = 'raw';
  </code></pre>
  
  <p>And this:
      $urlparams['format']='raw';
      $urlparams[]=array('format' => 'raw');</p>
  
  <p>And this:</p>
  
  <pre><code>$doc = JFactory::getDocument();            
  $doc-&gt;setType('raw');
  </code></pre>
  
  <p>None of them seem to do the trick.</p>