API16

JApplication/route

From Joomla! Documentation

< API16:JApplication
Revision as of 17:34, 22 March 2010 by Doxiki (talk | contribs) (New page: ===Description=== Route the application. <span class="editsection" style="font-size:76%;"> <nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki> </sp...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

The "API16" 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.

Description[edit]

Route the application.

[Edit Descripton]

Template:Description:JApplication/route

Syntax[edit]

route()


Defined in[edit]

libraries/joomla/application/application.php

Importing[edit]

jimport( 'joomla.application.application' );

Source Body[edit]

public function route()
{
        // Get the full request URI.
        $uri    = clone JURI::getInstance();

        $router = &$this->getRouter();
        $result = $router->parse($uri);

        JRequest::set($result, 'get', false);

        // Trigger the onAfterRoute event.
        JPluginHelper::importPlugin('system');
        $this->triggerEvent('onAfterRoute');
}

[Edit See Also] Template:SeeAlso:JApplication/route

Examples[edit]

<CodeExamplesForm />