Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Notice (8): Undefined offset: 0 [APPViewFrontusersadmin_exportemails.ctp, line 12]
- Warning (2): fputcsv() expects parameter 2 to be array, null given [APPViewHelperCsvHelper.php, line 36]
- Notice (8): Undefined offset: 1 [APPViewFrontusersadmin_exportemails.ctp, line 12]
- Warning (2): fputcsv() expects parameter 2 to be array, null given [APPViewHelperCsvHelper.php, line 36]
- $line= $useremails[0]['Frontuser'];
- $this->CSV->addRow(array_keys($line));
- foreach ($useremails as $key => $useremail)
- {
- $line =$useremail[$key]['Frontuser'];
- $this->CSV->addRow($line);
- }
- $filename='useremails';
- echo $this->CSV->render($filename);
- Array
- (
- [0] => Array
- (
- [Frontuser] => Array
- (
- [name] => Rash
- [email] => rash.com
- )
- )
- [1] => Array
- (
- [Frontuser] => Array
- (
- [name] => John
- [email] => john@gmail.com
- )
- )
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement