Welcome Guest, Not a member yet? Register   Sign In
simple question - $this->load->vars(array) not working
#3

[eluser]xwero[/eluser]
Or
Code:
function index()
    {
        $this->load->vars(array(
            'query' => $this->db->get('casestudies'),
            'newsquery' => $this->db->get('news', 3)
        ));
        $this->load->view('casestudies_view');
    }
Or
Code:
function index()
    {
       $vars['query'] = $this->db->get('casestudies'),
       $vars['newsquery'] = $this->db->get('news', 3)
       $this->load->vars($vars);
        $this->load->view('casestudies_view');
    }


Messages In This Thread
simple question - $this->load->vars(array) not working - by El Forum - 07-02-2008, 07:55 AM
simple question - $this->load->vars(array) not working - by El Forum - 07-02-2008, 08:36 AM
simple question - $this->load->vars(array) not working - by El Forum - 07-02-2008, 11:20 AM



Theme © iAndrew 2016 - Forum software by © MyBB