Hi wiredesignz
I’ve just taken the following steps:
1. Removed application/core/MY_Lang.php
2. Downloaded and installed new MX files from bitbucket
3. Added a __construct() method to application/third_party/MX/Lang.php with a call to the CI class as follows:
class MX_Lang extends CI_Lang
{
function __construct()
{
$index_page = CI::$APP->config->item('index_page');
}
public function load($langfile, $lang = '', $return = FALSE, $add_suffix = TRUE, $alt_path = '', $_module = '') {
//$index_page = CI::$APP->config->item('index_page');
...
}
}This results in: Fatal error: Call to a member function item() on a non-object in ... application/third_party/MX/Lang.php ...
4. I modify the code in #3 above to the following:
class MX_Lang extends CI_Lang
{
function __construct()
{
//$index_page = CI::$APP->config->item('index_page');
}
public function load($langfile, $lang = '', $return = FALSE, $add_suffix = TRUE, $alt_path = '', $_module = '') {
$index_page = CI::$APP->config->item('index_page');
...
}
}This runs fine - no errors.
5. I added debug code to the __construct() in both MX/Base.php and MX/Lang.php ... the CI class in Base.php is correctly instantiated before the MX_Lang class in Lang.php ... it just does not make sense why CI is not available in a __construct() in MX/Lang.php!?!
Sidenote: Heard you are from NZ? Watch the rugby this morning?