New answers tagged

2

I think you could more easily achieve what you're trying to do by displaying the other page as a response to the HTTP POST associated with the form submission, rather than by using a redirect. After a form is submitted the core Joomla components always redirect to another page via a GET, but you don't have to follow that approach. You can provide the other ...


2

JRequest::checkToken() is deprecated. So use if( JSession::checkToken() ==false){ echo "The form was not submitted"; }else{ // Display the view parent::display($tpl); } // Set the document $this->setDocument(); OR better you can even use JSession::getFormToken().


Top 50 recent answers are included