API17

Difference between revisions of "JController::setRedirect"

From Joomla! Documentation

(Layout updates)
m (preparing for archive only)
 
(5 intermediate revisions by 2 users not shown)
Line 4: Line 4:
 
Set a URL for browser redirection.  
 
Set a URL for browser redirection.  
  
{{Description:JController::setRedirect}}
+
 
<span class="editsection" style="font-size:76%;">
+
 
<nowiki>[</nowiki>[[Description:JController::setRedirect|Edit Descripton]]<nowiki>]</nowiki>
 
</span>
 
===Since===
 
{{JVer|11.1 }}
 
===Synopsis===
 
 
<source lang="php">
 
<source lang="php">
public JController::setRedirect ($url, $msg=null, $type=null)
+
public function setRedirect (
 +
        $url
 +
        $msg=null
 +
        $type=null
 +
)
 
</source>
 
</source>
 
{| class="wikitable"
 
{| class="wikitable"
Line 37: Line 36:
 
|-
 
|-
 
|}
 
|}
===Returns===
+
* '''Returns''' This object to support chaining.
This object to support chaining.
+
* '''Defined''' on line 972 of libraries/joomla/application/component/controller.php
===Defined in===
+
* '''Since''' {{JVer|11.1 }}
libraries/joomla/application/component/controller.php (line 972)
 
* see source code in [[jplatform:application/component/controller.php#cl-972|BitBucket]]
 
===Referenced by===
 
 
===See also===
 
===See also===
<span class="editsection" style="font-size:76%;">
+
* {{JVer|11.1}} '''JController::setRedirect source code''' on [[jplatform:application/component/controller.php#cl-964|BitBucket]]
<nowiki>[</nowiki>[[SeeAlso:JController::setRedirect|Edit See Also]]<nowiki>]</nowiki>
+
* {{JVer|11.1}} Class [[API17:JController|JController]]
</span>
+
* {{JVer|11.1}} Subpackage [[API17:Subpackage_Application|Application]]
* [[JController/11.1|JController]]
+
* [[API17:JController::setRedirect|Other versions of JController::setRedirect]]
* [[JController::setRedirect|Other versions of this method]]
+
 
{{SeeAlso:JController::setRedirect}}
+
 
===Examples===
+
===User contributed notes===
<CodeExamplesForm />
+
=== Code Examples ===
 
<dpl>
 
<dpl>
 
noresultsheader=\n
 
noresultsheader=\n
 
category=JController::setRedirect
 
category=JController::setRedirect
category=CodeExample
+
namespace=CodeExample
 
category=MethodExample
 
category=MethodExample
 
include=*
 
include=*
 +
namespace=CodeExample
 
format= ,,,
 
format= ,,,
 
</dpl>
 
</dpl>
<noinclude>[[Category:JController]][[Category:JController::setRedirect]]</noinclude>
+
<noinclude>[[Category:Platform 11.1]][[Category:Archived pages API17]]</noinclude>

Latest revision as of 21:31, 24 March 2017

The "API17" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.

Joomla 11.1 JController::setRedirect[edit]

Description[edit]

Set a URL for browser redirection.


public function setRedirect (
        $url
        $msg=null
        $type=null
)
Parameter Type Default Description
$url string URL to redirect to.
$msg string null Message to display on redirect. Optional, defaults to value set internally by controller, if any.
$type string null Message type. Optional, defaults to 'message' or the type set by a previous call to setMessage.
  • Returns This object to support chaining.
  • Defined on line 972 of libraries/joomla/application/component/controller.php
  • Since Joomla 11.1

See also[edit]


User contributed notes[edit]

Code Examples[edit]