I'm using CSV helper to export my report as CSV. I added CSV in my
controller and in my view I'm using the following codes:
$line = array ( Parameter1,Parameter2);
$csv->addRow($line);
$line = array ( Parameter3,Parameter4);
$csv->addRow($line);
echo $csv->render('test.csv', 'UTF-16','auto');
but my result will be parameter1;parameter2 in the first row same col and
parameter3;parameter4 in the second row same col, plus the result is not
Unicode
can anybody help me to fix this code and have the result as:
parameter 1 parameter 2 in row1 col 1 col2
parameter 3 parameter 4 in row2 col 1 col2
Thanks
Sherry
--
View this message in context: http://cakephp.19694.n2.nabble.com/CSV-Helper-tp5892409p5892409.html
Sent from the CakePHP mailing list archive at Nabble.com.
Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
No comments:
Post a Comment