Welcome Guest, Not a member yet? Register   Sign In
CI Views / Structure question
#2

[eluser]bubbafoley[/eluser]
do it like this and the varaibles will be available in all of your views

Code:
$data['var1'] = $this->blabla_model->get_banner_info_now_please();
$this->load->vars($data);

then in your view it's just:
Code:
<?php echo $var1 ?>


Messages In This Thread
CI Views / Structure question - by El Forum - 03-16-2011, 11:34 AM
CI Views / Structure question - by El Forum - 03-16-2011, 11:51 AM



Theme © iAndrew 2016 - Forum software by © MyBB