Welcome Guest, Not a member yet? Register   Sign In
how to have a varibale in the header
#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>


Messages In This Thread
how to have a varibale in the header - by El Forum - 03-13-2009, 03:55 AM
how to have a varibale in the header - by El Forum - 03-13-2009, 04:01 AM
how to have a varibale in the header - by El Forum - 03-13-2009, 04:28 AM
how to have a varibale in the header - by El Forum - 03-13-2009, 06:27 AM
how to have a varibale in the header - by El Forum - 03-13-2009, 06:42 AM
how to have a varibale in the header - by El Forum - 03-13-2009, 06:53 AM
how to have a varibale in the header - by El Forum - 03-13-2009, 08:50 AM
how to have a varibale in the header - by El Forum - 03-13-2009, 08:51 AM
how to have a varibale in the header - by El Forum - 03-13-2009, 09:33 AM
how to have a varibale in the header - by El Forum - 03-13-2009, 09:40 AM
how to have a varibale in the header - by El Forum - 03-13-2009, 09:42 AM
how to have a varibale in the header - by El Forum - 03-13-2009, 09:47 AM
how to have a varibale in the header - by El Forum - 03-13-2009, 09:48 AM
how to have a varibale in the header - by El Forum - 03-13-2009, 09:55 AM
how to have a varibale in the header - by El Forum - 03-15-2009, 04:22 PM
how to have a varibale in the header - by El Forum - 03-15-2009, 07:03 PM



Theme © iAndrew 2016 - Forum software by © MyBB