Re: CSV Helper

2011-01-06 Thread sherzo

I fixed that problem by using this method ->
http://www.dnamique.com/cakephp-export-data-to-excel-the-easy-way/
http://www.dnamique.com/cakephp-export-data-to-excel-the-easy-way/ 
-- 
View this message in context: 
http://cakephp.19694.n2.nabble.com/CSV-Helper-tp5892409p5894944.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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


CSV Helper

2011-01-05 Thread sherzo

Hi All

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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: CSV Helper not rendering on web host, but works on localhost

2010-07-12 Thread LunarDraco
I'd make sure your layout you are using for the csv is being copied
out to your web host. If it is missing cake is going to use its
default layout which is going to have the headers etc set for html/
text.


On Jul 9, 12:23 pm, CapeTownGuy  wrote:
> Hi, I'm using the CSV helper and it works fine on my localhost,
> however as soon as I upload to a web host, it stops working.
>
> The only clue I could glean is that the content type is different on
> the web host, however I have no idea why it changes from the correct
> mime type on localhost to text/html on the web host.

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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


CSV Helper not rendering on web host, but works on localhost

2010-07-09 Thread CapeTownGuy
Hi, I'm using the CSV helper and it works fine on my localhost,
however as soon as I upload to a web host, it stops working.

The only clue I could glean is that the content type is different on
the web host, however I have no idea why it changes from the correct
mime type on localhost to text/html on the web host.

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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Problems with CSV helper configuration

2008-04-18 Thread b logica

Put this in the controller method:

$this->layout = null;
$this->autoLayout = false;

On Fri, Apr 18, 2008 at 12:27 AM, Correl <[EMAIL PROTECTED]> wrote:
>
>  Every time I export a report using the helper it contains the data I
>  want, but also has this at the top of the file:
>www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
>  http://www.w3.org/1999/xhtml";>
>  
>  CakePHP(tm) : Reports
>>
>  
>  
>  
>  "   "
>  "   "
>  "   CakePHP Rapid Development"
>  "   "
>  "   "
>
>
>
>  I think my settings are wrong. Any ideas what I could be doing wrong?
>
>  >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Problems with CSV helper configuration

2008-04-18 Thread Samuel DeVore

it seems likely that you are not changing the layout to something
other then default.  It would be helpful if you would post some code
for the controller that goes with that view probably.

paste some sample in http://bin.cakephp.org/

On Thu, Apr 17, 2008 at 9:27 PM, Correl <[EMAIL PROTECTED]> wrote:
>
>  Every time I export a report using the helper it contains the data I
>  want, but also has this at the top of the file:
>www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
>  http://www.w3.org/1999/xhtml";>
>  
>  CakePHP(tm) : Reports
>>
>  
>  
>  
>  "   "
>  "   "
>  "   CakePHP Rapid Development"
>  "   "
>  "   "
>
>
>
>  I think my settings are wrong. Any ideas what I could be doing wrong?
>
>  >
>



-- 
-- 
(the old fart) the advice is free, the lack of crankiness will cost you

- its a fine line between a real question and an idiot

http://blog.samdevore.com/archives/2007/03/05/when-open-source-bugs-me/
http://blog.samdevore.com/cakephp-pages/my-cake-wont-bake/
http://blog.samdevore.com/cakephp-pages/i-cant-bake/

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Problems with CSV helper configuration

2008-04-18 Thread Correl

Every time I export a report using the helper it contains the data I
want, but also has this at the top of the file:

http://www.w3.org/1999/xhtml";>

CakePHP(tm) : Reports




"   "
"   "
"   CakePHP Rapid Development"
"   "
"   "



I think my settings are wrong. Any ideas what I could be doing wrong?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---