Skip to main content
This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.
I waht to usea function in Page.php to print only 3 entry of $MenuTitle.
So I use this code:
$array = $MenuTitle;
$nuovo_menu = $array[$i];
something is wrong, is it possible to use $menuTitle varable in Page.php function?
$MenuTitle would refer to the variable $MenuTitle in that function, you need to refer to the MenuTitle on the 'Object' rather then the function by doing