public function ajaxGetManufacturerByProductAction() { $this->_helper->layout->disableLayout(); $item_id = $this->_request->getParam('item_id', ''); $stakeholder_items = new Model_Stakeholders(); $stakeholder_items->form_values['item_id'] = $item_id; $associated = $stakeholder_items->getManufacturerByProduct(); $this->view->associated = $associated; $associated_array = array(); if (count($associated) > 0) { foreach ($associated as $row) { $associated_array[] = $row['stakeholderName']; } } $not_associated = $stakeholder_items->getUnaccociatedManufacturer($associated_array); $this->view->not_associated = $not_associated; }
public function ajaxGetManufacturerByProductAction() { $this->_helper->layout->disableLayout(); $item_id = $this->_request->getParam('item_id', ''); $stakeholder_items = new Model_Stakeholders(); $stakeholder_items->form_values['item_id'] = $item_id; $associated = $stakeholder_items->getManufacturerByProduct(); $this->view->associated = $associated; $not_associated = $stakeholder_items->getUnaccociatedManufacturer(); $this->view->not_associated = $not_associated; }