11
ghia
Re: constants in blocks VS constants in other module files
  • 2009/9/29 14:57

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


See this.

12
frankblack
Re: constants in blocks VS constants in other module files
  • 2009/9/29 15:28

  • frankblack

  • Just can't stay away

  • Posts: 830

  • Since: 2005/6/13


Quote:
The magic of the PHP static statement is that it allows a function to "remember" the value of a local variable for the next time the function is called.


Thx for the link, but ... perhaps I get this wrong? I am doing what I am told and put a static variable inside the function of the module file. So the variable keeps its value even when the function is finished. Does this help me in my case? Does the function of the BLOCK do know about the kept value of module file? If yes, what happens if I leave the page of the module file? Is the value still kept? This would be bad as before, because then the block would not get the javascript and css because it thinks that some files are still loaded.

I guess I am not skilled enough to answer these question/problem.

Login

Who's Online

135 user(s) are online (69 user(s) are browsing Support Forums)


Members: 0


Guests: 135


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits