title: Redirection from component to view in joomla 2.5.8
body: <p>I am new to joomla. am using joomla 2.5.8 version. i have created one component. i can post form data from view to task in component. but i couldn't redirect from task to view. this is my simple function in controller. This URL is saved in Redirect manager.</p>
  
  <pre><code>  function sample(){
  
          $mainframes = JFactory::getApplication();
          $link=  JRoute::_('index.php?option=com_new',FALSE);
          $msg = JText::_('welcome');
  
          $mainframes-&gt;redirect($link,$msg);
      }
  </code></pre>