API15

API15:JController/redirect

From Joomla! Documentation

Description

Redirects the browser or returns false if no redirect is set.

[<! removed edit link to red link >]

<! removed transcluded page call, red link never existed >

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;
}

[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >

Examples

Code Examples