Re: Open Flash Charts in Cake

2008-05-28 Thread b logica

On Wed, May 28, 2008 at 12:14 PM, Kyle Decot <[EMAIL PROTECTED]> wrote:
>
> Well, I uploaded the site to my servers and I still get the same
> result. It just downloads a text file with the source code in it
> instead of displaying the page.

That'll happen if your webserver isn't configured properly for PHP scripts.

> I ran the page through the W3C
> validator and it comes back with 90 some errors, but if I take out the
> code, it has zero errors. Does anyone have any suggestions?

Obviously, because the PHP code isn't HTML.

> You can take a look at it here:
>
> http://walksdemo.loraincounty.com/dashboard

The server appears to be parsing the script as PHP now but you have
some other errors. I suggest you place a debug() statement in your
controller to see if it's properly setting whatever the view is
looking for.

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Open Flash Charts in Cake

2008-05-28 Thread Kyle Decot

Well, I uploaded the site to my servers and I still get the same
result. It just downloads a text file with the source code in it
instead of displaying the page. I ran the page through the W3C
validator and it comes back with 90 some errors, but if I take out the
code, it has zero errors. Does anyone have any suggestions?

You can take a look at it here:

http://walksdemo.loraincounty.com/dashboard
http://validator.w3.org/check?uri=http%3A%2F%2Fwalksdemo.loraincounty.com%2Fdashboard&charset=%28detect+automatically%29&doctype=Inline&group=0

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Open Flash Charts in Cake

2008-05-28 Thread Kyle Decot

I'm attempting to use this on my local machin(a mac) but when I put
the following code in, when i navigate to the page, it just dowloads a
plain text file instead of displaying the page? Any reasons why this
is happening? It is the same code that is in the bakery.


// Sets height and width
$flashChart->begin(400, 250);
// Title
$flashChart->title('Example 2 - Lines: Hits per Day');
// Configure Grid style and legends
$flashChart->configureGrid(
array(
'x_axis' => array(
'step' => 1,
'legend' => 'Day'
),
'y_axis' => array(
'legend' => '#Hits',
)
)
);
// Prepare some random data (10 points)
$random_hits = array();
for ($i=0; $i < 10; $i++) {
$random_hits[] = rand(10,100);
}
// Register each data set with its information.
$data = array(
'Hits' => array(
'color' => '#00aa42',
'font_size' => 11,
'data' => $random_hits,
'graph_style' => 'lines',
)
);
$flashChart->setData($data);

// Set Ranges in the chart
$flashChart->setRange('y', 0, 100);
$flashChart->setRange('x', 0, 10);

// Show the graph
echo $flashChart->render();



--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Open Flash Charts in Cake

2008-05-08 Thread BrendonKoz

Since I've found Open Flash Charts I was planning on using the simple
App::import() method, but then I came across a bakery article
specifically about a (somewhat unfinished but still very much working)
Helper for the Open Flash Charts for use with CakePHP v1.2.

http://bakery.cakephp.org/articles/view/open-flash-chart-helper-draw-charts-the-cake-way

On May 8, 9:55 am, "S. William Schulz" <[EMAIL PROTECTED]> wrote:
> @Doc,
>
> I'm using OFC with Cake.  Feel free to ping me if you're still looking
> for a solution down that route.
>
> S
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Open Flash Charts in Cake

2008-05-08 Thread S. William Schulz

@Doc,

I'm using OFC with Cake.  Feel free to ping me if you're still looking
for a solution down that route.

S

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Open Flash Charts in Cake

2008-05-08 Thread dr. Hannibal Lecter

@Marcin: Thanks for sharing that one, very nice!

On May 8, 10:20 am, "Marcin Domanski" <[EMAIL PROTECTED]> wrote:
> i always used libchart [1] - quick, easy , nicely written
>
> [1]http://naku.dohcrew.com/libchart/pages/introduction/
>
> On Thu, May 8, 2008 at 7:13 AM, Elmo <[EMAIL PROTECTED]> wrote:
>
> >  Also check out this blog entry about App::import():
>
> >  http://cakebaker.42dh.com/2008/03/26/loading-vendor-files/
>
> >  On Apr 21, 2:23 pm, ScottieBoy4 <[EMAIL PROTECTED]> wrote:
>
> > > I've found a really slick library for generating flash charts and
> >  > graphs w/a PHP wrapper.  I can get it to work outside of cake, but not
> >  > inside.  Has any one used the Open Flash Charts code in Cake?
>
> --
> Marcin Domanskihttp://kabturek.info
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Open Flash Charts in Cake

2008-05-08 Thread Marcin Domanski

i always used libchart [1] - quick, easy , nicely written

[1] http://naku.dohcrew.com/libchart/pages/introduction/

On Thu, May 8, 2008 at 7:13 AM, Elmo <[EMAIL PROTECTED]> wrote:
>
>  Also check out this blog entry about App::import():
>
>  http://cakebaker.42dh.com/2008/03/26/loading-vendor-files/
>
>
>  On Apr 21, 2:23 pm, ScottieBoy4 <[EMAIL PROTECTED]> wrote:
>
>
> > I've found a really slick library for generating flash charts and
>  > graphs w/a PHP wrapper.  I can get it to work outside of cake, but not
>  > inside.  Has any one used the Open Flash Charts code in Cake?
>  >
>



-- 
Marcin Domanski
http://kabturek.info

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Open Flash Charts in Cake

2008-05-07 Thread Elmo

Also check out this blog entry about App::import():

http://cakebaker.42dh.com/2008/03/26/loading-vendor-files/

On Apr 21, 2:23 pm, ScottieBoy4 <[EMAIL PROTECTED]> wrote:
> I've found a really slick library for generating flash charts and
> graphs w/a PHP wrapper.  I can get it to work outside of cake, but not
> inside.  Has any one used the Open Flash Charts code in Cake?
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Open Flash Charts in Cake

2008-04-21 Thread Jon Bennett

>  CakePHP supports 3rd party libraries via the vendors folder (/app/
>  vendors). Include your library via vendor('filename').
>
>  If your library was named charts.php, you'd call it in via
>  vendor('charts');

Not in 1.2, you use App:import, eg:

App::import('Vendor', null, null, null, 'charts.php');

hth

jon


-- 

jon bennett
w: http://www.jben.net/
iChat (AIM): jbendotnet Skype: jon-bennett

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Open Flash Charts in Cake

2008-04-21 Thread James K

CakePHP supports 3rd party libraries via the vendors folder (/app/
vendors). Include your library via vendor('filename').

If your library was named charts.php, you'd call it in via
vendor('charts');

On Apr 21, 2:23 pm, ScottieBoy4 <[EMAIL PROTECTED]> wrote:
> I've found a really slick library for generating flash charts and
> graphs w/a PHP wrapper.  I can get it to work outside of cake, but not
> inside.  Has any one used the Open Flash Charts code in Cake?

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Open Flash Charts in Cake

2008-04-21 Thread ScottieBoy4

I've found a really slick library for generating flash charts and
graphs w/a PHP wrapper.  I can get it to work outside of cake, but not
inside.  Has any one used the Open Flash Charts code in Cake?

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---