JRoute

From Joomla! Documentation
(Difference between revisions)
Jump to: navigation, search
m (changing <pre> to <source> to include syntax hilighting)
m (bad link repair)
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Jroute is used to output URI's.
+
This class is available in the following Joomla versions:-
Static JRoute::_methodname()
+
<splist showpath=notparent />
Does not need to keep track of menu items.
+
<noinclude>[[Category:Platform JClasses]][[Category:JRoute]]</noinclude>
 
+
A simple example of using JRoute would be
+
<source lang=php>
+
<?php echo JRoute::_('index.php?option=example&task=view'); ?>
+
</source>
+
 
+
If we use this method inside a class and we are trying to link it to current component we do not need to specify option
+

Latest revision as of 14:01, 29 August 2012

This class is available in the following Joomla versions:-

Personal tools
Namespaces

Variants
Actions
Navigation
Joomla! Sites
Toolbox