Advertisement
Guest User

Untitled

a guest
Jul 30th, 2014
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. Notice (8): Undefined offset: 0 [APPViewFrontusersadmin_exportemails.ctp, line 12]
  2.  
  3. Warning (2): fputcsv() expects parameter 2 to be array, null given [APPViewHelperCsvHelper.php, line 36]
  4.  
  5. Notice (8): Undefined offset: 1 [APPViewFrontusersadmin_exportemails.ctp, line 12]
  6.  
  7. Warning (2): fputcsv() expects parameter 2 to be array, null given [APPViewHelperCsvHelper.php, line 36]
  8.  
  9. $line= $useremails[0]['Frontuser'];
  10. $this->CSV->addRow(array_keys($line));
  11.  
  12. foreach ($useremails as $key => $useremail)
  13. {
  14. $line =$useremail[$key]['Frontuser'];
  15. $this->CSV->addRow($line);
  16. }
  17. $filename='useremails';
  18. echo $this->CSV->render($filename);
  19.  
  20. Array
  21. (
  22. [0] => Array
  23. (
  24. [Frontuser] => Array
  25. (
  26. [name] => Rash
  27. [email] => rash.com
  28. )
  29.  
  30. )
  31.  
  32. [1] => Array
  33. (
  34. [Frontuser] => Array
  35. (
  36. [name] => John
  37. [email] => john@gmail.com
  38. )
  39.  
  40. )
  41.  
  42. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement