Table of Contents

getPathWay

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

Return the JPathWay items array.

Syntax

array getPathWay ( $showHome, $showComponent )

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

Examples

Example

global $mainframe;

$pathway =& $mainframe->getPathWay();
print_r( $pathway->getPathWay( true, false ) );

might produce:

Result

Array
(
    [0] => stdClass Object
        (
            [name] => Home
            [link] => index.php
        )
)