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

[eluser]Lacsap[/eluser]
Hello

I'm working now with Codeigniter and i must say it saves a lot of time Smile
But my problem now costs me a lot of time.


First:
I dont have this problem on localhost!
If i upload this site to my webhoster im getting this error!

And i wanna ask. Is it important to pay attention on writing:
Code:
$this->my_model->function(); 
with my_model or My_model?

If i call this model with a lower case first letter i'm getting error on localhost and on my webhost. But only with this model! I call all other models with lower case first letter!
With a upper case first latter i dont get any errors on localhost but on my webhost.

Error on webhost:
Quote:Fatal error: Call to undefined method My_model::get() in .../system/application/controllers/mycontroller.php on line 29

on line 29:
Code:
$data['vars'] = $this->My_model->get(); 

the function is:
Code:
return $this->db->query($sql)->result(); 


Ive got PHP Version 5.2.11 on webhost.
And PHP Version 5.3.0 on localhost.

I hope that are enough imformations to solve my problem :-(

THANKS !


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