Welcome Guest, Not a member yet? Register   Sign In
Array in model weirdness
#2

[eluser]Shodan[/eluser]
...continued from previous post

This results in the following error message:

“Fatal error: Cannot use object of type Quick_quote_cart_model as array in C:\xampp\htdocs\tm_v2\application\models\quick_quote_cart_model.php on line 36”

I’m baffled. This code is based on a non-CI system that works perfectly, so the theory as far as I can see is sound.

Even more bizarrely, if you remove the “$this->” the assignment lines of the “Quick_quote_cart_model->Add_cart_item()” function, it’ll get past the initial error (causing more problems further down the line).

I’m assuming this is some sort of scope issue but I really have no idea what’s going on.

Any ideas?

ANY help would be appreciated at this stage.

Thanks in advance,
Terry


Messages In This Thread
Array in model weirdness - by El Forum - 10-02-2007, 09:18 AM
Array in model weirdness - by El Forum - 10-02-2007, 09:18 AM
Array in model weirdness - by El Forum - 10-02-2007, 10:10 AM



Theme © iAndrew 2016 - Forum software by © MyBB