Welcome Guest, Not a member yet? Register   Sign In
New and Need Help
#1

[eluser]Unknown[/eluser]
I am new to codeigniter (CI) and I have found it ot be a nice framework so far.
It does aid me in writing application but I have now ran into a major obsticle.
I have classes and libraries which I have been using in my PHP and have had no luck in integrating them with CI.
One example is a php graph library known as phpGraphLIB.

With normal php wil would do the following
Code:
include('phpgraphlib.php');
$graph = new PHPGraphLib(500,350);
$data = array(12124, 5535, 43373, 22223, 90432, 23332, 15544, 24523, 32778, 38878, 28787, 33243, 34832, 32302);
$graph->addData($data);
$graph->setTitle('Widgets Produced');
$graph->setGradient('red', 'maroon');
$graph->createGraph();

When I try within CI, all I get is a message saying
Quote:The image “http://localhost/calllog/” cannot be displayed, because it contains errors.

How would be able to reuse this classes and libraries back in the CodeIgniter.

Thanks in advance.
#2

[eluser]iloveci[/eluser]
Checkout this page of the user guide, http://ellislab.com/codeigniter/user-gui...aries.html
It details how to create a CI library, so you'll need to edit phpgraphlib.php so it conforms to CI library standards and then you'll be able to use it.




Theme © iAndrew 2016 - Forum software by © MyBB