• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
variable in function of view

#4
[eluser]kgill[/eluser]
Ok I poked around and it appears that the values passed to the view in the data array aren't actually global. So either you drop the function idea (should it really be in a view anyway?) or you pass params or you do a really ugly hack:

Code:
global myNewVar;
myNewVar = $abcde;

function xxx()
{
global $myNewVar;
$yyy = $myNewVar;
}


Messages In This Thread
variable in function of view - by El Forum - 07-06-2007, 02:44 PM
variable in function of view - by El Forum - 07-06-2007, 10:59 PM
variable in function of view - by El Forum - 07-06-2007, 11:26 PM
variable in function of view - by El Forum - 07-06-2007, 11:59 PM
variable in function of view - by El Forum - 07-07-2007, 05:28 AM
variable in function of view - by El Forum - 07-07-2007, 06:00 PM
variable in function of view - by El Forum - 07-07-2007, 09:55 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.