| API | Package | Subpackage | Class | Method | Reference | Last reviewed | Doc status |
|---|---|---|---|---|---|---|---|
Home |
Joomla.Framework |
Application |
JPathWay |
addItem |
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.
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. |
Example
global $mainframe; $pathway =& $mainframe->getPathWay(); $pathway->addItem( 'testing', 'http://www.joomla.org' );
which will add the item testing to the pathway.