JRoute

From Joomla! Documentation
(Difference between revisions)
Jump to: navigation, search
(New page: Jroute is used to output URI's. Static Jroute::_methodname() Does not need to keep track of menu items. A simple example of using Jroute would be echo Jroute::_(index.php?option=exampl...)
 
m (bad link repair)
 
(9 intermediate revisions by 4 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
+
 
+
echo Jroute::_(index.php?option=example&task=view);
+
 
+
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.
+
 
+
It can even help us optimize urls for SEO.
+
Ritesh Khare
+
Ritesh_Khare[at]live.in
+

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