Welcome Guest, Not a member yet? Register   Sign In
Problem with model class
#4

[eluser]jedd[/eluser]
[quote author="Lacsap" date="1253808610"]
i dont have my_model i just wrote it down here.
[/quote]

Ahh, so you were just trying to confuse me.

Quote:ive got 2 models: food_model.php and foodbox_model.php
...
Code:
class Food_model extends Model {...
and
Code:
class Foodbox_model extends Model {...

This makes sense.


Quote:i autoload them with ...'foodbox_model','food_model'

Why would you do that? I refer you to [url="http://ellislab.com/codeigniter/user-guide/general/models.html#loading"]the loading section of the Models page[/url] in the user guide.


Quote:
Code:
$this->Foodbox_model
it works on localhost

This is because you're loading the models wrongly. You should refer to your models with an upper-case first character.

I hinted earlier that people often find problems switching between real operating systems and Microsoft operating systems. You haven't quite said so, but I'm guessing that localhost is a different operating system to whatever it is that you're talking about that isn't localhost. Would that be a fair guess?


Messages In This Thread
Problem with model class - by El Forum - 09-24-2009, 03:22 AM
Problem with model class - by El Forum - 09-24-2009, 05:04 AM
Problem with model class - by El Forum - 09-24-2009, 05:10 AM
Problem with model class - by El Forum - 09-24-2009, 05:21 AM
Problem with model class - by El Forum - 09-24-2009, 05:26 AM
Problem with model class - by El Forum - 09-24-2009, 05:32 AM
Problem with model class - by El Forum - 09-24-2009, 05:39 AM
Problem with model class - by El Forum - 09-24-2009, 05:53 AM
Problem with model class - by El Forum - 09-24-2009, 06:09 AM
Problem with model class - by El Forum - 09-24-2009, 06:12 AM



Theme © iAndrew 2016 - Forum software by © MyBB