JRoute

From Joomla! Documentation

Jump to: navigation, search

Contents

Defined in

libraries/joomla/methods.php

Methods

Method name Description
_ Translates an internal Joomla URL to a humanly readible URL.

Importing

jimport( 'joomla.methods' );

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