Welcome Guest, Not a member yet? Register   Sign In


I've been researching frameworks for a project that i am working on, and CI seems to be the choice for me, but before i can commit i need to know i can integrate ChartDirector into CI. I've searched around and found no reference to how this is done. I havent been able to get it going with my noob knowledge of CI(lol, read manual and did some tutorials). From what i've experienced so far i'm guessing i'm breaking some of the security safeguards hence the failure.

Can someone please explain how i would do this integration?

So for clarity here is some information on ChartDirector.
ChartDirector is a chart library (class based).
Here is a very rudimentary example of how it works in php.
1. To integrate into php update php.ini eg. extension_dir = /public_html/ChartDirector/lib (the chart library contains a bunch of *.dlls and the main class php library)
2. php coding is fairly straightforward after that. Here is a basic structure...
- lets assume a file called simpleline.php which containing the chart construction something like this:

# Create a XYChart object
$c = new XYChart(250, 250);
---> construct the chart object blah blah...
# create the chart
$c = drawChart();
# Output the chart
header("Content-type: image/png");

typically, one would integrate the simpleline.php into an html img tag like this:
img SRC="simpleline.php"

thanks in advance!

Theme © iAndrew 2016 - Forum software by © MyBB