Codeigniter Error MY_Loader::_ci_object_to_array()

Codeigniter Error MY_Loader::_ci_object_to_array()
Codeigniter, Error, Config
Prepared by Mr. Aditya

OVERVIEW & PURPOSE

An uncaught Exception was encountered

Type: Error
Message: Call to undefined method MY_Loader::_ci_object_to_array()
Filename: /var/www/crm.therubymedia.com/application/third_party/MX/Loader.php
Line Number: 300
Backtrace:
File: /var/www/crm.therubymedia.com/application/modules/auth/controllers/Auth.php
Line: 27
Function: view
File: /var/www/crm.therubymedia.com/index.php
Line: 315
Function: require_once

EDUCATION STANDARDS


In application/third_party/MX/Loader.php you can do the following...
Under public function view($view, $vars = array(), $return = FALSE) Look for... (Line 300)
return $this->_ci_load(array('_ci_view' => $view, '_ci_vars' => $this->_ci_object_to_array($vars), '_ci_return' => $return));
Replace with :
if (method_exists($this, '_ci_object_to_array')) { return $this->_ci_load(array('_ci_view' => $view, '_ci_vars' => $this->_ci_object_to_array($vars), '_ci_return' => $return)); } else { return $this->_ci_load(array('_ci_view' => $view, '_ci_vars' => $this->_ci_prepare_view_vars($vars), '_ci_return' => $return)); }

Komentar