Okay, here's the function in the Welcome controller:
Code:
function index(){
$this->output->cache(30);
$data['title'] = "Welcome to Claudia's Kids";
$data['navlist'] = $this->MCats->getCategoriesNav();
$data['mainf'] = $this->MProducts->getMainFeature();
$skip = $data['mainf']['id'];
$data['sidef'] = $this->MProducts->getRandomProducts(3,$skip);
$data['main'] = 'home';
$this->load->vars($data);
$this->load->view('template');
}
It appears that the $this->MProducts->getMainFeature() function isn't returning a value. Which means that the products db table is empty.
This probably means that you've jumped ahead :) and are looking at the code before you go through the book. That's okay. Just enter a product into the database table using PHPMYADMIN, it can be anything you want.