控制器代码:
public function index($slugcat,$slugsubcat,$slugsubsubcat)
{
setlocale(LC_MONETARY, 'en_IN') ;
$this->data['category'] = $this->product_model->get_category();
$this->data['subcategory'] = $this->product_model->get_subcategory();
$this->db->where('slug',$slugcat);
$query = $this->db->get('categories')->result();
foreach($query as $q) {$id=$q->id; }
if($slugsubcat!=''){
$this->db->where('slug',$slugsubcat);
$query1 = $this->db->get('sub_categories')->result();
foreach($query1 as $q1) {$id1=$q1->id;}}
if($slugsubsubcat!=''){
$this->db->where('slug',$slugsubsubcat);
$query2 = $this->db->get('sub_sub_categories')->result();
foreach($query2 as $q2) {
$id2=$q2->id;
}
}
下面的图像显示了我的错误页面
此错误影响我的产品页面。由于此错误,未显示产品图片
我的错误行是:公共函数索引($ slugcat,$ slugsubcat,$ slugsubsubcat)