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

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -