JRouter
(New page: '''JRouter''' is an abstract class to create an parse routes. You need to write your own concrete Router Class to make use of its functionality. The Joomla CMS uses the '''JRouterSite''' c...) |
m |
||
| Line 9: | Line 9: | ||
===Extends=== | ===Extends=== | ||
* [[JObject]] | * [[JObject]] | ||
| − | |||
===Methods=== | ===Methods=== | ||
| Line 24: | Line 23: | ||
If you take a look at the private _buildSefRoute method of this class, you'll quickly realise that the Joomla Developers allow you to create your own custom routing handlers for each of your components. This way, you can make your components SEO friendly. If you want to learn, how to write such an handler take a look at this [[Routing|article]] and visit the section ''The Component Router'' | If you take a look at the private _buildSefRoute method of this class, you'll quickly realise that the Joomla Developers allow you to create your own custom routing handlers for each of your components. This way, you can make your components SEO friendly. If you want to learn, how to write such an handler take a look at this [[Routing|article]] and visit the section ''The Component Router'' | ||
| − | |||
===See also=== | ===See also=== | ||
* [http://api.joomla.org/Joomla-Framework/Application/JRouter.html JRouter on api.joomla.org] | * [http://api.joomla.org/Joomla-Framework/Application/JRouter.html JRouter on api.joomla.org] | ||
<noinclude>[[Category:Development]][[Category:Framework]][[Category:JRouter]]</noinclude> | <noinclude>[[Category:Development]][[Category:Framework]][[Category:JRouter]]</noinclude> | ||
Revision as of 17:57, 8 August 2009
JRouter is an abstract class to create an parse routes. You need to write your own concrete Router Class to make use of its functionality. The Joomla CMS uses the JRouterSite class as concrete Router implementation. For further information see below.
Contents |
Availability
Defined in
/joomla/application/router.php
Extends
Methods
| Method name | Description |
|---|
Importing
jimport( 'joomla.application.router' );
JRouter, the Joomla CMS and writing your own components
JRouter is an abstract class of the Joomla Framework. The Joomla CMS is a concrete application, using the Joomla Framework. Thus, they have created their own concrete Router class, which handles routes. This concrete Router is called JRouterSite and can be found in includes/router.php.
If you take a look at the private _buildSefRoute method of this class, you'll quickly realise that the Joomla Developers allow you to create your own custom routing handlers for each of your components. This way, you can make your components SEO friendly. If you want to learn, how to write such an handler take a look at this article and visit the section The Component Router