php - Redirecting out of modal box in joomla -


i have component in joomla contains form,this form in modal sbox...when form submitted redirects user successfull message page again in modal box,my problem want redirect normal page not in modal...how can that?

this redirect code component...

$url = jroute::_('index.php?option=com_jxtcappbook'.(jrequest::getint( 'pop', 0) ? '&view=complete&tmpl=component' : ''));     $this->setredirect($url,jtext::_( 'you appointment booked succesfully.'.$pop )); 

you can user below code if using joomla 2.5

$app = jfactory::getapplication(); $app->redirect('index.php');

and if using joomla1.5 than

global $mainframe; $mainframe->redirect('index.php');

vote me if helpful you

thanks!


Comments

Popular posts from this blog

c - How to retrieve a variable from the Apache configuration inside the module? -

c# - Constructor arguments cannot be passed for interface mocks -

python - malformed header from script index.py Bad header -