====== setItemName ====== {#JAPI Joomla.Framework Application JPathWay::setItemName #} Sets the name of the specified item. ===== Syntax ===== boolean setItemName ( **$id**, **$name** ) | **$id** | integer | is an integer containing the array index of the item to name. | | **$name** | string | is a string containing the name to apply to the pathway element. | ===== Examples ===== global $mainframe; $pathway =& $mainframe->getPathWay(); $pathway->setItemName( '1', 'Joomla! Info' ); will change the name of the second element in the pathway (since the array is zero based). The home element usually has index 0.