<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	>
<channel>
	<title>Comments on: Code Igniter &amp; maani.us</title>
	<atom:link href="http://www.mizanurrahman.com/2007/11/17/code-igniter-maanius/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mizanurrahman.com/2007/11/17/code-igniter-maanius/</link>
	<description>- weblog of Mizanur Rahman</description>
	<pubDate>Wed, 08 Feb 2012 08:47:30 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Bojan</title>
		<link>http://www.mizanurrahman.com/2007/11/17/code-igniter-maanius/comment-page-1/#comment-705</link>
		<dc:creator>Bojan</dc:creator>
		<pubDate>Mon, 11 Aug 2008 21:39:08 +0000</pubDate>
		<guid isPermaLink="false">http://booleandreams.wordpress.com/2007/11/17/code-igniter-maanius/#comment-705</guid>
		<description>Hello,

I am new to PHP/SWF. I am trying to use it with PHP/MySQL at the moment and am having problems.

I am trying to display a simple bar graph. but... When I get a value from my database from a query and try to use it as a value in the graph only the default chart appears.

I have tried isolating the problem and the default chart appears the moment there is a query made to my database.

When using static variables the chart looks great though.

Is there a simple way to fix this?</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>I am new to PHP/SWF. I am trying to use it with PHP/MySQL at the moment and am having problems.</p>
<p>I am trying to display a simple bar graph. but&#8230; When I get a value from my database from a query and try to use it as a value in the graph only the default chart appears.</p>
<p>I have tried isolating the problem and the default chart appears the moment there is a query made to my database.</p>
<p>When using static variables the chart looks great though.</p>
<p>Is there a simple way to fix this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: booleandreams</title>
		<link>http://www.mizanurrahman.com/2007/11/17/code-igniter-maanius/comment-page-1/#comment-701</link>
		<dc:creator>booleandreams</dc:creator>
		<pubDate>Wed, 09 Jan 2008 22:53:48 +0000</pubDate>
		<guid isPermaLink="false">http://booleandreams.wordpress.com/2007/11/17/code-igniter-maanius/#comment-701</guid>
		<description>hi ricky

its you are getting the container that means the swf is loaded properly and the chart_data is not formatted properly. check that part of the code. make sure that your chart_data contains a two dimension array or array of arrays. dump the chart_data part and you will understand where the problem is.

if you still cant find any solution, just send me the code

thanks
Mizan</description>
		<content:encoded><![CDATA[<p>hi ricky</p>
<p>its you are getting the container that means the swf is loaded properly and the chart_data is not formatted properly. check that part of the code. make sure that your chart_data contains a two dimension array or array of arrays. dump the chart_data part and you will understand where the problem is.</p>
<p>if you still cant find any solution, just send me the code</p>
<p>thanks<br />
Mizan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ricky</title>
		<link>http://www.mizanurrahman.com/2007/11/17/code-igniter-maanius/comment-page-1/#comment-704</link>
		<dc:creator>Ricky</dc:creator>
		<pubDate>Wed, 09 Jan 2008 14:56:04 +0000</pubDate>
		<guid isPermaLink="false">http://booleandreams.wordpress.com/2007/11/17/code-igniter-maanius/#comment-704</guid>
		<description>Hello, this is just what I'm looking for, but I'm having the same problem as paddy, was this ever resolved?

I'm getting the container with the default background colour, but no chart is rendering.

Any ideas on what could be happening?</description>
		<content:encoded><![CDATA[<p>Hello, this is just what I&#8217;m looking for, but I&#8217;m having the same problem as paddy, was this ever resolved?</p>
<p>I&#8217;m getting the container with the default background colour, but no chart is rendering.</p>
<p>Any ideas on what could be happening?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paddy x Murphy</title>
		<link>http://www.mizanurrahman.com/2007/11/17/code-igniter-maanius/comment-page-1/#comment-700</link>
		<dc:creator>Paddy x Murphy</dc:creator>
		<pubDate>Mon, 17 Dec 2007 15:59:02 +0000</pubDate>
		<guid isPermaLink="false">http://booleandreams.wordpress.com/2007/11/17/code-igniter-maanius/#comment-700</guid>
		<description>Mizanur,

Thank you for that guidance. I'm going to have another look at the code with your comments in mind.

Keep up the good work.

Regards

Paddy</description>
		<content:encoded><![CDATA[<p>Mizanur,</p>
<p>Thank you for that guidance. I&#8217;m going to have another look at the code with your comments in mind.</p>
<p>Keep up the good work.</p>
<p>Regards</p>
<p>Paddy</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: booleandreams</title>
		<link>http://www.mizanurrahman.com/2007/11/17/code-igniter-maanius/comment-page-1/#comment-702</link>
		<dc:creator>booleandreams</dc:creator>
		<pubDate>Sun, 16 Dec 2007 14:11:49 +0000</pubDate>
		<guid isPermaLink="false">http://booleandreams.wordpress.com/2007/11/17/code-igniter-maanius/#comment-702</guid>
		<description>hi paddy

if you can see the default graphs on your swf, that means you have a problem with the data part for the chart. if the chart_data variable is not set properly then maani shows the default graph for that type. make sure that your chart_data contains a two dimension array or array of arrays. dump the chart_data part and you will understand where the problem is.



if you still cant find any solution, just dump me the chart_data variable.


thanks
Mizan</description>
		<content:encoded><![CDATA[<p>hi paddy</p>
<p>if you can see the default graphs on your swf, that means you have a problem with the data part for the chart. if the chart_data variable is not set properly then maani shows the default graph for that type. make sure that your chart_data contains a two dimension array or array of arrays. dump the chart_data part and you will understand where the problem is.</p>
<p>if you still cant find any solution, just dump me the chart_data variable.</p>
<p>thanks<br />
Mizan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paddy x Murphy</title>
		<link>http://www.mizanurrahman.com/2007/11/17/code-igniter-maanius/comment-page-1/#comment-703</link>
		<dc:creator>Paddy x Murphy</dc:creator>
		<pubDate>Fri, 14 Dec 2007 15:57:58 +0000</pubDate>
		<guid isPermaLink="false">http://booleandreams.wordpress.com/2007/11/17/code-igniter-maanius/#comment-703</guid>
		<description>Mizanur,

I have been a longtime user of PHP/SWF and have recently adopted Codeigniter so this is very helpful.

I have had a go at implementing this and I am getting stuck one place and I wonder if you can help me.

This is what I have done:

1. Contents of 'charts.php' saved to 'charts_helper.php' in '/system/helpers/'.

2. Simple view 'charter.php' created with, essentially, one line 'echo $chart'.

3. 'charter.php' controller created with the following content:

-------------------

class Charter extends Controller {

	function Charter() {
		parent::Controller();
		$this-&gt;load-&gt;helper('charts');
	}

	function index() {
		$url = site_url().'/charter/datasource';
		$charturl = base_url().'/charts/charts.swf';
		$chartlib = base_url().'/charts/charts_library';
		$data['chart'] = InsertChart($charturl, $chartlib, $url ,400,400,'CCFFCC');
		$this-&gt;load-&gt;view('charter', $data);
	}


	function datasource() {
		$this-&gt;load-&gt;helper('charts');
		$chart[ 'axis_category' ] = array (  'size'=&gt;16, 'color'=&gt;"000000", 'alpha'=&gt;75, 'skip'=&gt;0 ,'orientation'=&gt;"horizontal" );
		.....(chart definition)...
		SendChartData ( $chart );
	}

}

-----------------------------

The good news is that I am getting the chart container which responds to changes in the size and background colour so we are getting the swf.

Here's the problem: no chart is displayed. I have tried creating a separate datasource and still no chart. Can you see what's wrong?

Thanks

Paddy</description>
		<content:encoded><![CDATA[<p>Mizanur,</p>
<p>I have been a longtime user of PHP/SWF and have recently adopted Codeigniter so this is very helpful.</p>
<p>I have had a go at implementing this and I am getting stuck one place and I wonder if you can help me.</p>
<p>This is what I have done:</p>
<p>1. Contents of &#8216;charts.php&#8217; saved to &#8216;charts_helper.php&#8217; in &#8216;/system/helpers/&#8217;.</p>
<p>2. Simple view &#8216;charter.php&#8217; created with, essentially, one line &#8216;echo $chart&#8217;.</p>
<p>3. &#8216;charter.php&#8217; controller created with the following content:</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>class Charter extends Controller {</p>
<p>	function Charter() {<br />
		parent::Controller();<br />
		$this-&gt;load-&gt;helper(&#8217;charts&#8217;);<br />
	}</p>
<p>	function index() {<br />
		$url = site_url().&#8217;/charter/datasource&#8217;;<br />
		$charturl = base_url().&#8217;/charts/charts.swf&#8217;;<br />
		$chartlib = base_url().&#8217;/charts/charts_library&#8217;;<br />
		$data['chart'] = InsertChart($charturl, $chartlib, $url ,400,400,&#8217;CCFFCC&#8217;);<br />
		$this-&gt;load-&gt;view(&#8217;charter&#8217;, $data);<br />
	}</p>
<p>	function datasource() {<br />
		$this-&gt;load-&gt;helper(&#8217;charts&#8217;);<br />
		$chart[ 'axis_category' ] = array (  &#8217;size&#8217;=&gt;16, &#8216;color&#8217;=&gt;&#8221;000000&#8243;, &#8216;alpha&#8217;=&gt;75, &#8217;skip&#8217;=&gt;0 ,&#8217;orientation&#8217;=&gt;&#8221;horizontal&#8221; );<br />
		&#8230;..(chart definition)&#8230;<br />
		SendChartData ( $chart );<br />
	}</p>
<p>}</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>The good news is that I am getting the chart container which responds to changes in the size and background colour so we are getting the swf.</p>
<p>Here&#8217;s the problem: no chart is displayed. I have tried creating a separate datasource and still no chart. Can you see what&#8217;s wrong?</p>
<p>Thanks</p>
<p>Paddy</p>
]]></content:encoded>
	</item>
</channel>
</rss>

