
Код моей модели:
Код: Выделить всё
public function get_all_customers()
{
$this->db->select('*, customerID, custstr, CONCAT(custstr, '.', customerID) AS custcode')->from('customers');
$this->db->join('deliverydays', 'customers.DeliveryDaysID = deliverydays.DeliveryDaysID', 'left');
$this->db->join('deliveryman', 'customers.DeliveryPersonID=deliveryman.DeliveryManID');
$this->db->join('reference', 'reference.referenceID=customers.referenceID');
$this->db->order_by('customerID','asc');
$query = $this->db->get();
return $query->result_array();
}
Код: Выделить всё
$customers=$this->customer_model->get_all_customers();
$data ['customers'] = $customers;
$this->loadViews("customer_view", $this->global, $data);
Код: Выделить всё
Проблема в том, что выдает ошибки
Сообщение: попытка получить свойство, не являющееся объектом
Где проблема? Я не понимаю.
Подробнее здесь: https://stackoverflow.com/questions/491 ... iter-issue
Мобильная версия