php - Trying to pass multi-dimensional array to view with Codeigniter? -
simple stuff brain blocked , can't work out. here's builds array in controller:
foreach ($rows $row) { $slugs[] = $row->slug; } $data['slugs'] = $slugs; print_r($data['slugs']); //returns array fine
get view:
$this->load->view('pickcasino', $data);
this doesn't work in view:
print_r($slugs);
how work?
can please check $this->load->view('pickcasino',$data);
may there problem in load view
Comments
Post a Comment