Welcome Guest, Not a member yet? Register   Sign In
how to have a varibale in the header
#11

[eluser]runrun[/eluser]
[quote author="jdfwarrior" date="1236973907"]If I decide to attempt to drive from outside the car instead, hilarity and issues occur.[/quote]

You wouldn't do as almost everyone has been in the car before, but put you in a spaceship I can't say you wouldn't attempt to fly it from the windows, which might look like car seat
#12

[eluser]jdfwarrior[/eluser]
I have no idea wtf you just said or meant Smile
#13

[eluser]runrun[/eluser]
I mean no offense, just a joke back. I see you understand it too seriously.
#14

[eluser]jdfwarrior[/eluser]
Nah. Figured you were joking, just didnt quite understand it. I take nothing seriously.
#15

[eluser]Mat-Moo[/eluser]
RunRun assuming account_view.php is a view file loaded from a controller, then when you load it any variables passed to it in the load_view('account_view,$data) will be availble in header and footer as well. So if $data["title"]="This is my page title"; Then in header_view.php can access those vars, e.g.
Code:
<title><?=$title?></title>
#16

[eluser]runrun[/eluser]
yea I figured that out early on. Thanks for helping.




Theme © iAndrew 2016 - Forum software by © MyBB