Using Joomla Redirect

Instead of use "header" now I use application->redirect() of Joomla.