JApplication/getRouter: Difference between revisions
From Joomla! Documentation
New page: ===Description===
Returns the application JRouter object.
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>Edit Descripton<no... |
m removing red link to edit, no existant pages |
||
| Line 3: | Line 3: | ||
<span class="editsection" style="font-size:76%;"> | <span class="editsection" style="font-size:76%;"> | ||
<nowiki>[< | <nowiki>[<! removed edit link to red link >]</nowiki> | ||
</span> | </span> | ||
<! removed transcluded page call, red link never existed > | |||
===Syntax=== | ===Syntax=== | ||
| Line 52: | Line 52: | ||
<span class="editsection" style="font-size:76%;"> | <span class="editsection" style="font-size:76%;"> | ||
<nowiki>[< | <nowiki>[<! removed edit link to red link >]</nowiki> | ||
</span> | </span> | ||
<! removed transcluded page call, red link never existed > | |||
===Examples=== | ===Examples=== | ||
| Line 67: | Line 67: | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
[[Category:Archived pages API16]] | |||
Revision as of 01:57, 13 May 2013
Description
Returns the application JRouter object.
[<! removed edit link to red link >]
<! removed transcluded page call, red link never existed >
Syntax
static getRouter($name=null, array $options=array())
| Parameter Name | Default Value | Description |
|---|---|---|
| $name | null | $options An optional associative array of configuration settings. |
| array() |
Returns
.
Defined in
libraries/joomla/application/application.php
Importing
jimport( 'joomla.application.application' );
Source Body
static public function getRouter($name = null, array $options = array())
{
if (!isset($name)) {
$name = $this->_name;
}
jimport('joomla.application.router');
$router = &JRouter::getInstance($name, $options);
if (JError::isError($router)) {
return null;
}
return $router;
}
[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >
Examples
<CodeExamplesForm />