Welcome Guest, Not a member yet? Register   Sign In
Upgrading
#1

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);

Gives

Message: Undefined property: Login::$Template

If I remove the line 

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


I have never come across smarty before so I am a bit stuck - thanks
Reply




Theme © iAndrew 2016 - Forum software by © MyBB