CodeIgniter Forums

Full Version: Upgrading
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I am trying to upgrade a very old CodeIgniter site and I am getting

Message: Cannot access protected property CI_Loader::$_ci_varmap

The line is

$this->load->_ci_varmap['smarty_parser'] = 'Template';

Also Smarty_parser.php and the smarty libary are both under the libraries library. Do they need moving?

$this->Template->parse("ci:index.tpl", $data);


[font=Times New Roman]Message: Undefined property: Login::$Template[/font]

[font=Times New Roman]If I remove the line [/font]

[font=Times New Roman][font=Times New Roman]$this->load->_ci_varmap['smarty_parser'] = 'Template';[/font][/font]

[font=Times New Roman][font=Times New Roman]I have never come across smarty before so I am a bit stuck - thanks[/font][/font]