Simple stuff but my brain is blocked up and I can't work it out. Here's what builds the array in the controller:
foreach ($rows as $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 the view:
print_r($slugs);
How do I get it to work?
can you please check the $this->load->view('pickcasino',$data);
may be there is problem in load the view