I had created a module in magento to export some custom data for customer in excel sheet and when the user clicks on link it used to get exported and downloaded but now its stopped working suddenly. I see the file being created in my var folder but its not getting downloaded whatsoever
$csv->saveData($fileName, $customersArray);
$this->_prepareDownloadResponse($fileName, array('type' => 'filename', 'value' => $fileName));
$this->loadLayout();
$this->_title($this->__("Customer Export"));
$this->renderLayout();