<?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: Error reporting with CodeIgniter</title>
	<atom:link href="http://hash-bang.net/2009/02/error-reporting-with-ci/feed/" rel="self" type="application/rss+xml" />
	<link>http://hash-bang.net/2009/02/error-reporting-with-ci/</link>
	<description>The start of all wonderful things</description>
	<lastBuildDate>Thu, 26 Apr 2012 13:44:12 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: Valoo</title>
		<link>http://hash-bang.net/2009/02/error-reporting-with-ci/comment-page-1/#comment-6329</link>
		<dc:creator>Valoo</dc:creator>
		<pubDate>Thu, 26 Apr 2012 13:44:12 +0000</pubDate>
		<guid isPermaLink="false">http://hash-bang.net/?p=100#comment-6329</guid>
		<description>Very good job, this is going to be implemented in all my present and future projects. Thank you very mutch !
I had to make a small modification to make it fit though.

in recent versions of CI (at least), you need to use the session library to get session content ($_SESSION is never set).

first load the lib at the beginning of the function:
function err($errno, $errstr, $errfile, $errline, $errcontext) {
$CI =&amp; get_instance();
$CI-&gt;load-&gt;library(array(&#039;session&#039;));
$errtable = array(...

then replace :
(114) : if (in_array(&#039;SESSION&#039;, $extras)) $message .= _err_dump_array(isset($_SESSION) ? $_SESSION : array(), &#039;Session&#039;);
by :
if (in_array(&#039;SESSION&#039;, $extras)) $message .= _err_dump_array($CI-&gt;session-&gt;all_userdata(), &#039;Session&#039;);

have fun !</description>
		<content:encoded><![CDATA[<p>Very good job, this is going to be implemented in all my present and future projects. Thank you very mutch !<br />
I had to make a small modification to make it fit though.</p>
<p>in recent versions of CI (at least), you need to use the session library to get session content ($_SESSION is never set).</p>
<p>first load the lib at the beginning of the function:<br />
function err($errno, $errstr, $errfile, $errline, $errcontext) {<br />
$CI =&amp; get_instance();<br />
$CI-&gt;load-&gt;library(array(&#8216;session&#8217;));<br />
$errtable = array(&#8230;</p>
<p>then replace :<br />
(114) : if (in_array(&#8216;SESSION&#8217;, $extras)) $message .= _err_dump_array(isset($_SESSION) ? $_SESSION : array(), &#8216;Session&#8217;);<br />
by :<br />
if (in_array(&#8216;SESSION&#8217;, $extras)) $message .= _err_dump_array($CI-&gt;session-&gt;all_userdata(), &#8216;Session&#8217;);</p>
<p>have fun !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Neo2SHYAlien blog &#124; CodeIgniter &#124; Нещо Дребно</title>
		<link>http://hash-bang.net/2009/02/error-reporting-with-ci/comment-page-1/#comment-2899</link>
		<dc:creator>Neo2SHYAlien blog &#124; CodeIgniter &#124; Нещо Дребно</dc:creator>
		<pubDate>Tue, 28 Sep 2010 19:00:28 +0000</pubDate>
		<guid isPermaLink="false">http://hash-bang.net/?p=100#comment-2899</guid>
		<description>[...] на проблема е с добавянето на един външен хелпър Err Helper &#8211; човека е обяснил как се плава туи чудо. След като [...]</description>
		<content:encoded><![CDATA[<p>[...] на проблема е с добавянето на един външен хелпър Err Helper &#8211; човека е обяснил как се плава туи чудо. След като [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Neo2SHYAlien</title>
		<link>http://hash-bang.net/2009/02/error-reporting-with-ci/comment-page-1/#comment-2898</link>
		<dc:creator>Neo2SHYAlien</dc:creator>
		<pubDate>Tue, 28 Sep 2010 18:33:54 +0000</pubDate>
		<guid isPermaLink="false">http://hash-bang.net/?p=100#comment-2898</guid>
		<description>Very cool work dude :)</description>
		<content:encoded><![CDATA[<p>Very cool work dude :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Neds</title>
		<link>http://hash-bang.net/2009/02/error-reporting-with-ci/comment-page-1/#comment-2712</link>
		<dc:creator>Neds</dc:creator>
		<pubDate>Tue, 25 May 2010 07:41:49 +0000</pubDate>
		<guid isPermaLink="false">http://hash-bang.net/?p=100#comment-2712</guid>
		<description>Nice class. I am not using CI, but my custom MVC framework, and I modified your class for my framework.</description>
		<content:encoded><![CDATA[<p>Nice class. I am not using CI, but my custom MVC framework, and I modified your class for my framework.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: xavthine</title>
		<link>http://hash-bang.net/2009/02/error-reporting-with-ci/comment-page-1/#comment-2689</link>
		<dc:creator>xavthine</dc:creator>
		<pubDate>Thu, 29 Apr 2010 13:00:38 +0000</pubDate>
		<guid isPermaLink="false">http://hash-bang.net/?p=100#comment-2689</guid>
		<description>nice one erwin! this is very helpful!</description>
		<content:encoded><![CDATA[<p>nice one erwin! this is very helpful!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Programmieraffe</title>
		<link>http://hash-bang.net/2009/02/error-reporting-with-ci/comment-page-1/#comment-2486</link>
		<dc:creator>Programmieraffe</dc:creator>
		<pubDate>Wed, 25 Nov 2009 12:56:38 +0000</pubDate>
		<guid isPermaLink="false">http://hash-bang.net/?p=100#comment-2486</guid>
		<description>Nice, this is very helpful. :)

By the way, download button of the wp-codebox is not working.</description>
		<content:encoded><![CDATA[<p>Nice, this is very helpful. :)</p>
<p>By the way, download button of the wp-codebox is not working.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

