Reputation
1,723
Top tag
Next privilege 2,000 Rep.
Edit questions and answers
Badges
4 34 73
Impact
~327k people reached

  • 0 posts edited
  • 0 helpful flags
  • 224 votes cast
Jan
29
awarded  Good Question
Jan
19
awarded  Popular Question
Dec
8
awarded  Yearling
Oct
31
awarded  Notable Question
Oct
8
awarded  Popular Question
Sep
15
awarded  Popular Question
Sep
10
awarded  Popular Question
Sep
3
awarded  Notable Question
Aug
10
awarded  Notable Question
Jul
31
awarded  Notable Question
Jul
16
awarded  Popular Question
Jun
14
awarded  Popular Question
May
25
awarded  Famous Question
May
11
awarded  Nice Question
May
5
awarded  Popular Question
Apr
15
accepted Best way of passing PHP variable between partials?
Apr
14
revised Best way of passing PHP variable between partials?
edited title
Apr
14
comment Best way of passing PHP variable between partials?
How do I create this function / class without the need of calling it everywhere anyway? Could we focus on "how do that right" rather than "it doesn't work because you're wrong"? :) Thanks a lot! I'm just wondering what's the best, preferred way of getting the variable from header.php everywhere else. BTW even if I declare the variable in index.php I still can't access in fuctions below (why is so?).
Apr
14
comment Best way of passing PHP variable between partials?
I do think the variable is in the same scope, also I want to avoid using GLOBAL for obvious reasons.
Apr
14
asked Best way of passing PHP variable between partials?