| API | Package | Subpackage | Class | Method | Reference | Last reviewed | Doc status |
|---|---|---|---|---|---|---|---|
Home |
Joomla.Framework |
Application |
JPathWay |
getNamePathWay |
getNamePathWay() |
Never | Work in Progress |
Create and return an array of the pathway names. This is useful for things like SEF URLs.
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. |
Example
global $mainframe; $pathway =& $mainframe->getPathWay(); print_r( $pathway->getNamePathWay() );
might result in:
Result
Array ( [0] => [1] => Home [2] => News Feeds )