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++ - llvm function pass ReplaceInstWithInst malloc -

Cross-Compiling Linux Kernel for Raspberry Pi - ${CCPREFIX}gcc -v does not work -

java.lang.NoClassDefFoundError When Creating New Android Project -