Welcome Guest, Not a member yet? Register   Sign In
How do you use a model's output...
#1

[eluser]nubianxp[/eluser]
How do you use a model's output on one controller, but have it display on several views?

For example, I have a model that queries a welcome message and I want to display the data on the footer area (footer.php) so it shows up on every page, what should be the content of my controller? footer.php is called by views/index.php using <?=$this->load->view('footer')?>

Pretty trivial, but I'm just starting out with PHP, I know the first part of the controller file, but I don't know how to pass the $data to the footer.php, problem is, I get a variable undefined error.


Messages In This Thread
How do you use a model's output... - by El Forum - 04-04-2009, 02:14 PM
How do you use a model's output... - by El Forum - 04-04-2009, 03:21 PM
How do you use a model's output... - by El Forum - 04-04-2009, 03:29 PM
How do you use a model's output... - by El Forum - 04-04-2009, 03:37 PM
How do you use a model's output... - by El Forum - 04-04-2009, 04:03 PM
How do you use a model's output... - by El Forum - 04-05-2009, 02:06 AM
How do you use a model's output... - by El Forum - 04-05-2009, 10:25 AM



Theme © iAndrew 2016 - Forum software by © MyBB