Код: Выделить всё
function new_blank_order_lines()
{
$data = array(
'project' => $this->input->post('project'),
'millcoords' => $this->sales_model->get_mill_coords($this->input->post('mill')),
'custcoords' => $this->sales_model->get_cust_coords($this->input->post('deliveryaddressid')),
);
$this->load->view('sales/new_blank_order_lines', $data);
Код: Выделить всё
$data = array(
'project' => $this->input->post('project'),
'millcoords' => $this->sales_model->get_mill_coords($this->input->post('mill')),
'custcoords' => $this->sales_model->get_cust_coords($this->input->post('deliveryaddressid')),
'customersinrange' => $this->sales_model->get_customers_in_range($millcoords, $custcoords),
);
Как мне добиться этого, чтобы контроллер мог использовать результаты запроса модели для выполнения запроса новой модели?
Подробнее здесь: https://stackoverflow.com/questions/192 ... eclaration
Мобильная версия