on this chapter the book is telling me to change my index () controller from
Code:
function index(){
$data['title'] = " Welcome to Claudia 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');
}
to this
Code:
$home['mainf'] = $this->MProducts->getMainFeature();
$skip = $data['mainf']['id'];
$data['sidef'] = "$this->MProducts->getRandomProducts(3,$skip);
$data['main'] = $this->load->view('home',$home,true);
My problem is I have not created the home.php view so why should I change the index controller on that section. So if anyone who has passed chapter 4 can help me with how they index controller has been for this chapter I will be gratefull.