Support Joomla!

references:joomla.framework:application:jpathway-additem

Table of Contents

addItem

API Package Subpackage Class Method Reference Last reviewed Doc status
API Home Package Joomla.Framework Subpackage Application Class JPathWay Method addItem Reference addItem() Never Work in Progress

Create and add an item to the pathway. The new item is appended to the end of the pathway. Links do not appear on the last item in the pathway as it is assumed that this points to the current page.

Syntax

boolean addItem ( $name, $link )

$name string is a string containing the name of the item to add.
$link string is a string containing the URL for the link. This parameter is optional and if omitted will default to an empty string and the pathway item will not be linked.

Examples

Example

global $mainframe;

$pathway =& $mainframe->getPathWay();
$pathway->addItem( 'testing', 'http://www.joomla.org' );

which will add the item testing to the pathway.

 
references/joomla.framework/application/jpathway-additem.txt (617952 views) · Last modified: 2007/08/15 14:49