JRoute

From Joomla! Documentation
(Difference between revisions)
Jump to: navigation, search
Line 2: Line 2:
 
===Examples ===
 
===Examples ===
  
==Example 1==
+
====Example 1====
  
 
JRoute is used to output URI's.  
 
JRoute is used to output URI's.  

Revision as of 12:33, 22 November 2009

Template:Doxiki:JRoute

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

Personal tools
Namespaces

Variants
Actions
Navigation
Joomla! Sites
Toolbox