函数... :: index()的参数太少,第532行在... \ system \ core \ CodeIgniter.php中传递了1个参数,而正好是3个

时间:2019-07-08 11:11:43

标签: php codeigniter codeigniter-3 php-7 php-5.3

控制器代码:

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;
                    }
                }   

下面的图像显示了我的错误页面

enter image description here

此错误影响我的产品页面。由于此错误,未显示产品图片

我的错误行是:公共函数索引($ slugcat,$ slugsubcat,$ slugsubsubcat)

0 个答案:

没有答案