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

[eluser]wiredesignz[/eluser]
[quote author="jedd" date="1253809310"]...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...

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

@Jedd, the user guide does not specifically state anything about uppercase first characters when loading models, in fact the second example, loading models from a sub-directory, shows the name as lowercase.

Checking the code in the CI_Loader::Model() method indicates the class variable ($name) is whatever character case you use when loading the model, it is not important.

The user guide should be altered to reflect the actual code, and is misleading as it stands.

EDIT:
@Lacsap, I suspect your problems may be file name character case rather than loader character case.


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