Welcome Guest, Not a member yet? Register   Sign In
Undefined variable: getproductdetail and Invalid argument supplied for foreach()
#2

[eluser]InsiteFX[/eluser]
Code:
function products()
{
    $product_id = $this->uri->segment(3, 0);

    $this->load->model('Product_model');
    $data['getproductdetail']=$this->Product_model->get_productdetail($product_id);
    $this->load->view('detail/product', $data);
}

If that does not work:
Code:
echo var_dump($data);

To see if you are getting the values from your model...

The rest of your errors are probably caused because your not getting your product id.


Messages In This Thread
Undefined variable: getproductdetail and Invalid argument supplied for foreach() - by El Forum - 04-27-2012, 02:58 AM



Theme © iAndrew 2016 - Forum software by © MyBB