title: FusionCharts in Codeigniter Error: FusionCharts is not defined
body: <p>Hello all I am trying to use fusion charts in Codeigniter. I just followed the instruction from 
  <a href="http://www.ikawka.com/2008/12/fusion-chart/comment-page-1/" rel="nofollow">http://www.ikawka.com/2008/12/fusion-chart/comment-page-1/</a></p>
  
  <p>I see the error</p>
  
  <blockquote>
    <p>"FusionCharts is not defined" </p>
  </blockquote>
  
  <p>in firebug. On the view page I only see </p>
  
  <blockquote>
    <p>"Chart."</p>
  </blockquote>
  
  <p>Plugin folder has the file named fusion_pi.php</p>
  
  <pre><code>&lt;?php if (!defined('BASEPATH')) exit('No direct script access allowed');  
  function FusionCharts( $chart_type='Column3D', $width = "300", $height = "250" ){  
      require_once('fusion/FusionCharts_Gen.php' );  
      $FC = new FusionCharts($chart_type,$width,$height);  
      $FC-&gt;setSWFPath("images/fusioncharts/");  
      return $FC;  
  }  
  ?&gt;  
  </code></pre>
  
  <p>Controller:</p>
  
  <pre><code>function index()
   {
  
    // echo "hello world";
    $this-&gt;load-&gt;view("jquery_view");
  
  
  $this-&gt;load-&gt;plugin( 'fusion' );  
  echo "hi";
  $FC =  FusionCharts("Column3D","520","200");  
  $arrData = array( 500, 269, 254, 895, 633);  
  foreach( $arrData as $i=&gt;$data ){  
      $FC-&gt;addChartData( $data );  
  }  
  $strParam="numberSuffix=%; formatNumberScale=0; decimalPrecision=0; xAxisName=Integrated Process Average Score; animation=1";  
  $FC-&gt;setChartParams($strParam);  
  $FC-&gt;setChartMessage("ChartNoDataText=Chart Data not provided; PBarLoadingText=Please Wait.The chart is loading...");  
  echo $FC-&gt;renderChart();  
  
  
   }
  </code></pre>
  
  <p>View:</p>
  
  <pre><code>&lt;html&gt;
      &lt;head&gt;
          &lt;script type="text/javascript" src="&lt;?php echo base_url();?&gt;js/FusionCharts.js"&gt;&lt;/script&gt;
          &lt;script type="text/javascript" src="&lt;?php echo base_url();?&gt;js/jquery-1.3.2.min.js" &gt;&lt;/script&gt;
          &lt;script type="text/javascript" src="&lt;?php echo base_url();?&gt;js/ajax.js" &gt;&lt;/script&gt;
          &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;
  
          &lt;title&gt;Untitled Document&lt;/title&gt;
      &lt;/head&gt;
  
      &lt;body&gt;
          &lt;?php echo "Rajani". base_url()."js/FusionCharts.js";?&gt;
          &lt;label for="name"&gt;UserName&lt;/label&gt;
          &lt;input type="text" id="name" /&gt;
          &lt;input type="password" id="pwd" /&gt;
          &lt;input type="submit" name="submit" id="submit" value="submit" /&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I found that the line in view file: js/FusionCharts.js"> 
  is not detecting. What might be the problem? 
  Need Help.</p>
  
  <p>Thanks.</p>