I have problem in opencart to start user panel to show error like this. I am install theme but show error. but by default theme is running is good.
Fatal error: Call to undefined method Loader::library() in C:\xampp\htdocs\shopify\catalog\controller\journal2\settings.php on line 20
and code is setting.php file is
<?php
class ControllerJournal2Settings extends Controller {
private static $CACHEABLE = null;
private $css_settings = array();
private $js_settings = array();
protected $data = array();
protected function render() {
return Front::$IS_OC2 ? $this->load->view($this->template, $this->data) : parent::render();
}
public function index() {
$this->load->model('journal2/db');
$this->load->model('tool/image');
// admin mode
$this->load->library('user');
$this->user = new User($this->registry);
if ($this->user->isLogged()) {
$this->journal2->html_classes->addClass('is-admin');
}
// customer
if ($this->customer->isLogged()) {
$this->journal2->html_classes->addClass('is-customer');
} else {
$this->journal2->html_classes->addClass('is-guest');
}
// get current store config settings
$db_config_settings = $this->model_journal2_db->getConfigSettings();
foreach ($db_config_settings as $key => $value) {
$this->journal2->settings->set('config_' . $key, $value);
}
// get active skin
$skin_id = $this->journal2->settings->get('config_active_skin', 1);
if (!$this->model_journal2_db->skinExists($skin_id)) {
$skin_id = 1;
}
how to solve it. please help.