Table of Contents

getNamePathWay

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

Create and return an array of the pathway names. This is useful for things like SEF URLs.

Syntax

array getNamePathWay ( $showHome, $showComponent )

$showHome boolean is a flag that specifies whether or not the home element of the pathway array should be returned. This parameter is optional and if omitted defaults to true.
$showComponent boolean is a flag that specifies whether or not the component element of the pathway array should be returned. This parameter is optional and if omitted defaults to true.

Examples

Example

global $mainframe;

$pathway =& $mainframe->getPathWay();
print_r( $pathway->getNamePathWay() );

might result in:

Result

Array
(
    [0] => 
    [1] => Home
    [2] => News Feeds
)