• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
What is wrong with this code? Why the language doesn't load?

#1
[eluser]ReyPM[/eluser]
Hi every:
I'm trying to load a language files but I'm getting this error:
Quote:A PHP Error was encountered
Severity: Notice
Message: Undefined property: User::$lang
Filename: controllers/user.php
Line Number: 6
Where line number 6 is this:
Code:
5  public function __construct() {
6        $this->lang->load('common');
7        $this->lang->load('user');
8  }
What's wrong here?
Cheers and thx


Messages In This Thread
What is wrong with this code? Why the language doesn't load? - by El Forum - 04-04-2011, 12:59 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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