Welcome Guest, Not a member yet? Register   Sign In
$lang is a reserved variable, but is not present in CI docs
#1

[eluser]Mareshal[/eluser]
2 days ago I posted this: http://ellislab.com/forums/viewthread/143801/ . big headache , 6 hours spent on finding the mistake, but nothing. anyway, now I figured it.

I was using $lang as a global variable and I was getting this error
Code:
Fatal error: Call to a member function load() on a non-object in /home/admin/domains/1ms.in/public_html/*****/core/libraries/Form_validation.php on line 316

Line 316 is:
Code:
$this->CI->lang->load('form_validation');

so there is the conflict between $this->lang (my var) and CI core vars. but $lang is not a reserved word in docs: http://ellislab.com/codeigniter/user-gui...names.html I think it should be added.

regards
#2

[eluser]danmontgomery[/eluser]
Assuming it's been added since yesterday?

Quote:Variables

* $config
* $mimes
* $lang
#3

[eluser]Mareshal[/eluser]
Seems like they were added now Smile




Theme © iAndrew 2016 - Forum software by © MyBB