public function ajaxGetExistingBatchesAction() { $this->_helper->layout->disableLayout(); $this->_helper->viewRenderer->setNoRender(TRUE); $product = $this->_request->getParam('product'); $batch = new Model_StockBatch(); $batches = $batch->getExistingBatches($product); echo $batches; }