Problem with the Model inclusion - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Problem with the Model inclusion (/showthread.php?tid=25812) Pages:
1
2
|
Problem with the Model inclusion - El Forum - 12-27-2009 [eluser]BrianDHall[/eluser] http://ellislab.com/codeigniter/user-guide/general/models.html Quote:Connecting to your Database So this assumes you aren't auto-connecting to the database using an autoload. Quote:Loading a Model Problem with the Model inclusion - El Forum - 12-27-2009 [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. Problem with the Model inclusion - El Forum - 12-27-2009 [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? Problem with the Model inclusion - El Forum - 12-27-2009 [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. Problem with the Model inclusion - El Forum - 12-28-2009 [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 ? Problem with the Model inclusion - El Forum - 12-31-2009 [eluser]Helmasaur[/eluser] Any one knows what is the problem ? |