i am very new with php but i am able to get my way around joomla, word press and all. After installing a template when trying to test it at the front end it gives me the error below.
Fatal error: Call to a member function get() on a non-object in C:\xampp\htdocs\joomla\templates\sj_news17\includes\yt_template.class.php on line 112
There was this answer where the admin suggested "You create a local variable, $sql_initialize, but then later try to reference the attribute $this->sql_initialize, which has never been initialize to anything."
The problem is that when I look at this codes below I dont know where to start.
function getParam ($param, $default='') {
if (isset($this->params_cookie[$param])) {
return $this->params_cookie[$param];
}
return $this->_tpl->params->get($param, $default);
}
function setParam ($param, $value) {
$this->_params_cookie[$param] = $value;
whereby line 112 is }
return $this->_tpl->params->get($param, $default);
Will looking forward to your help