I used the code below to get the object's property _items:protected
, but no luck.
$obj = JSite::getMenu();
print_r($obj->_items:protected);
Object output
JMenuSite Object
(
[_items:protected] => Array
(
[101] => stdClass Object
(
[id] => 101
[menutype] => mainmenu
Anyone know what wrong with my code? Thanks.