I was hoping that someone could shed some light on this issue.
I get this error when viewing the main template.
A PHP Error was encountered
Message: Undefined property: Welcome::$MProducts
Line Number: 13
: Call to a member function getMainFeature() on a non-object in C:\xampp\htdocs\codeigniter\system\application\con trollers\welcome.php
on line 13
I have reached page 108 and have used the latest correct code.
Please help. Everything works if I take away...
$data['mainf'] = $this->MProducts->getMainFeature();
$skip = $data['mainf']['id'];
$data['sidef'] = $this->MProducts->getRandomProducts(3,$skip);
$data['main'] = 'home';