JController/redirect: Difference between revisions
From Joomla! Documentation
New page: ===Description===
Redirects the browser or returns false if no redirect is set.
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>[[Description:JController/redirect|... |
No edit summary |
||
| Line 25: | Line 25: | ||
{ | { | ||
if ($this->_redirect) { | if ($this->_redirect) { | ||
$ | global $mainframe; | ||
$ | $mainframe->redirect( $this->_redirect, $this->_message, $this->_messageType ); | ||
} | } | ||
return false; | return false; | ||
Revision as of 22:09, 22 March 2010
Description
Redirects the browser or returns false if no redirect is set.
Template:Description:JController/redirect
Syntax
redirect()
Returns
boolean False if no redirect exists.
Defined in
libraries/joomla/application/component/controller.php
Importing
jimport( 'joomla.application.component.controller' );
Source Body
function redirect()
{
if ($this->_redirect) {
global $mainframe;
$mainframe->redirect( $this->_redirect, $this->_message, $this->_messageType );
}
return false;
}
[Edit See Also] Template:SeeAlso:JController/redirect
Examples
<CodeExamplesForm />