• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Where is the best place to include inc file??

#6
[eluser]PhilTem[/eluser]
I know this may sound stupid again, but why don't you stick with the load of classes that CI provides you? I'd recommend you put your languages in one file in ./application/language/english/your_lang.php and load it via

Code:
$this->lang->load('your_lang', 'english');

Then you can access any language line with
Code:
$this->lang->line('_Home');

Otherwise it must work if you add the include before declaring the model-class (as long as your LANGPATH constant is defined well, it will work. Try to remove the @ before the include and see if you get any errors prompted)


Messages In This Thread
Where is the best place to include inc file?? - by El Forum - 06-22-2012, 03:22 PM
Where is the best place to include inc file?? - by El Forum - 06-22-2012, 03:46 PM
Where is the best place to include inc file?? - by El Forum - 06-22-2012, 10:14 PM
Where is the best place to include inc file?? - by El Forum - 06-23-2012, 03:46 AM
Where is the best place to include inc file?? - by El Forum - 06-23-2012, 09:35 AM
Where is the best place to include inc file?? - by El Forum - 06-23-2012, 11:14 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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