i like wick lib but i have any problem:
i Call a controller on Views:
<? $this->wick->light(‘global/component/showtopmenu’); ?>
it run true but on this controller, i call a model:
$this->load->model(‘frontend/shop/m_cat’, ‘m_shop_cat’);
$assign[‘list’][‘product’] = $this->m_shop_cat->getList($where, $order)->result_array();
On model used $this->db
Result: error !
A PHP Error was encountered
Severity: Notice
Message: Undefined property: M_cat::$db
Filename: shop/m_cat.php
Line Number: 45
Fatal error: Call to a member function select() on a non-object in E:\xampp\htdocs\Let Project\codeigniter\application\models\frontend\shop\m_cat.php on line 45
Please help me!
Sorry for my bad English !