• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Load database library wouldnt work...

#1
[eluser]Benedikt[/eluser]
Hi,

When I load the database-library (autoload or $this->load->database()) I get the message that the file "language/db_lang.php" couldnt be loaded.

Thats a little strange:
1) Wherever I copy the db_lang.php its not found (system/languages or application/languages)
2) Why should a languagefile be loaded at that stage?

Can anybody help me what Im doing wrong?

At the time of loading there is no database-query yet.

#2
[eluser]abmcr[/eluser]
What is the language set in the config file? if is (for example) italian, you mut have a sublfolder in the languages folder named italian and into the dd_lang.php file.

#3
[eluser]Benedikt[/eluser]
Yeah, that was my fault and solved the problem.

I had a default language loaded but forgot to create the folder.

Thanks for ur hint :-)

#4
[eluser]abmcr[/eluser]
ok

#5
[eluser]Benedikt[/eluser]
But a little strange that the error message didnt tell me the real folder.

It said "language/db_lang.php" but should have said "language/the_custom_language/db_lang.php"

#6
[eluser]abmcr[/eluser]
no the message is ok... CI load automatically the correct folder


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.