Example #1
0
 public function printuserlistAction()
 {
     $logic = new Logic_User();
     $data = $logic->getCsvData();
     $header = array_shift($data);
     $file = $logic->createCsv($data, $header, true);
     $this->_helper->sendFile($file, 'text/csv', array('filename' => 'users_list.csv'));
 }