I am developing a Joomla Administrator Component. In the Toolbar, I created a Button via

JToolBarHelper::custom('administrat.saveIt', 'save.png', 'save.png', 'SOME_TEXT', false);

In my controller, the function saveIt does not contain any Redirect statement. Still, when I klick the button it redirects me to an empty page, which i do not want.

What can i do, to Prevent this Button from redirecting?

  • Have you tried setting a redirect to the current page? – Lodder Aug 25 '15 at 13:31
  • Yes, but still it reloads the page then. I dont want anything to happen with the page when i press this button. – LocalHorst Aug 25 '15 at 13:36
  • 1
    If you don't want anything to happen, you'll need to use Javascript for this then – Lodder Aug 25 '15 at 13:37
  • You mean overriding the JToolbarHelper-Button? Or creating an own button? – LocalHorst Aug 25 '15 at 13:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.