Problem with the Model inclusion |
[eluser]BrianDHall[/eluser]
http://ellislab.com/codeigniter/user-gui...odels.html Quote:Connecting to your Database So this assumes you aren't auto-connecting to the database using an autoload. Quote:Loading a Model
[eluser]Helmasaur[/eluser]
[quote author="Eric Cope" date="1261953580"]It sounds like an web server issue. Check the file extensions. Are they any typos?[/quote] I don't understand about "typos". Can you explain please ? About the loading of the model with the auto-connection, I modified it, it's now: Code: function index() ![]() It doesn't come from the parser function, it's sure.
[eluser]jedd[/eluser]
[quote author="Helmasaur" date="1261949727"] In the guide, there is no capital letter: [/quote] From [url="http://ellislab.com/codeigniter/user-guide/general/models.html"]http://ellislab.com/codeigniter/user-guide/general/models.html[/url]: Quote:Where Model_name is the name of your class. Class names must have the first letter capitalized with the rest of the name lowercase. What guide are you reading?
[eluser]Eric Cope[/eluser]
[quote author="Helmasaur" date="1261970975"][quote author="Eric Cope" date="1261953580"]It sounds like an web server issue. Check the file extensions. Are they any typos?[/quote] I don't understand about "typos". Can you explain please ? About the loading of the model with the auto-connection, I modified it, it's now: Code: function index() ![]() It doesn't come from the parser function, it's sure.[/quote] instead of .php, its .phg Apache will only send specific files to the PHP Interpreter. Its a long shot, but worth looking.
[eluser]Helmasaur[/eluser]
I use the officiel guide. I didn't realise about that but capital or no, it stays the same. Normally, it loads .php fils because if I don't use the model's loader function, all works well. I can load a model with only the constructor fucntion, it doesn't work. Can it come from the database auto-connexion ?
|
Welcome Guest, Not a member yet? Register Sign In |