I had to be absent. I debugged ($carrinho->index) and the return is null. That is, $carinho->index is not receiving the value correctly in index.ctp. My problem is precisely this, receiving the index value of the array.
I had to be absent. I debugged ($carrinho->index) and the return is null. That is, $carinho->index is not receiving the value correctly in index.ctp. My problem is precisely this, receiving the index value of the array.