我正在使用Opencart扩展(dsociallogin_v2.3)。我已经安装了它,但是当尝试激活它时,它会显示错误。
Fatal error: Call to undefined method ControllerModuleDSocialLogin::render()
in /home/.../admin/controller/module/d_social_login.php on line 247
你能否告诉我为什么会发生这种情况以及如何解决这个问题?
$this->load->model('sale/customer_group');
$this->data['customer_groups'] = $this->model_sale_customer_group->getCustomerGroups();
$this->response->setOutput($this->render());
}
protected function validate() {
if (!$this->user->hasPermission('modify', 'module/d_social_login')) {
$this->error['warning'] = $this->language->get('error_permission');
}
答案 0 :(得分:0)
对于低于2.X的版本,请使用
$this->response->setOutput($this->render());
对于2.X以上的Opencart版本,然后是用户
$this->response->setOutput($this->load->view('folderName/fileName.tpl', $data));