How to send to view $data and $data2 at same time?
Posted
by artmania
on Stack Overflow
See other posts from Stack Overflow
or by artmania
Published on 2009-10-05T09:46:45Z
Indexed on
2010/03/09
3:06 UTC
Read the original article
Hit count: 375
codeigniter
|php
Hi friends,
I use codeigniter and issue about how to send to view $data and $data_cat2 at same time?
$data['records'] = $this->gallery_model->get_all(1);
$data_cat2['records'] = $this->gallery_model->get_all(2);
$this->load->view('gallery/index.php',$data);
I tried to put an another load->view for $data_cat2. and it just repeated the all page :/
Thanks regards!!! appreciate helps!
sorry for silly question, just sorted it! feel shame to ask that:
$data['records'] = $this->gallery_model->get_all(1);
$data['records_cat2'] = $this->gallery_model->get_all(2);
and using the record_cat2 in view file.
© Stack Overflow or respective owner