Re: unable to use fusioncharts in view

2010-05-28 Thread cricket
On May 28, 7:54 am, nick  wrote:
> Hi guys,
>
> I want to use fusioncharts in my cakephp application but the swf file
> to display the chart does not seem to be loading. In the same folder
> as my view, I have a directory called charts with all the swf files.

There's your problem. The views dir is above docroot (ie. webroot) so
you can't serve anything from there. Put your SWF files somewhere
below webroot, eg:

webroot/fusioncharts/...

Then serve them with a pth like:

/fusioncharts/...

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


unable to use fusioncharts in view

2010-05-28 Thread nick
Hi guys,

I want to use fusioncharts in my cakephp application but the swf file
to display the chart does not seem to be loading. In the same folder
as my view, I have a directory called charts with all the swf files.
Here is the code to load the file for the chart data.

echo renderChart("Charts/Column3D.swf", "", $strXML, "productSales",
600, 300, false, false);

I have also included the php file with the function renderChart in the
same view:

include("FusionCharts.php");

The problem is that only the area (600,300) for the chart is loading
without the Chart itself. Is there a better way to do this and where
exactly is the problem? Thanks in advance.

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