【发布时间】:2014-09-10 19:31:59
【问题描述】:
我有这个错误。这是我的代码。你能帮我吗? ??? ? ?第 149 行是最后一行 :(
$customer_group_info = $this->model_sale_customer_group->getCustomerGroup($order_info['customer_group_id']);
if ($customer_group_info) {
$this->data['customer_group'] = $customer_group_info['name'];
} else {
$this->data['customer_group'] = '';
}
$this->load->model('localisation/order_status');
$this->data['order_status'] = $this->model_localisation_order_status->getOrderStatus($order_info['order_status_id'])['name'];
【问题讨论】:
-
这是什么语言? php?
-
您不能在返回值上使用订阅
[]运算符(例如来自getOrderStatus)。您需要先将其存储在变量中。