17488 Posts in 4473 Topics by 1978 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 952 Views |
-
problem in function with $MenuTitle

15 October 2008 at 3:53am
HI!
I waht to usea function in Page.php to print only 3 entry of $MenuTitle.
So I use this code:function Ciclo_menu()
{
$array = $MenuTitle;
for($i=0;$i<3;$i++)
$nuovo_menu = $array[$i];
return $nuovo_menu;}
something is wrong, is it possible to use $menuTitle varable in Page.php function?
-
Re: problem in function with $MenuTitle

15 October 2008 at 1:16pm
$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
$this->MenuTitle
| 952 Views | ||
|
Page:
1
|
Go to Top |


