title: Is the setRedirect function works in the model file of a component
body: <p>setRedirect doesn't works in the model file of a component.</p>
  
  <p>models->test.php</p>
  
  <pre><code>$this-&gt;setRedirect(JRoute::_('index.php', false));
  </code></pre>