JRoute
From Joomla! Documentation
(Difference between revisions)
m (changing <pre> to <source> to include syntax hilighting) |
|||
| Line 1: | Line 1: | ||
| − | + | {{Doxiki:JRoute}} | |
| + | ===Examples === | ||
| + | |||
| + | ==Example 1== | ||
| + | |||
| + | JRoute is used to output URI's. | ||
Static JRoute::_methodname() | Static JRoute::_methodname() | ||
Does not need to keep track of menu items. | Does not need to keep track of menu items. | ||
Revision as of 12:32, 22 November 2009
Examples
Example 1
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
<?php 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