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

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

android - Keyboard hides my half of edit-text and button below it even in scroll view -