<?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: How to handle headers and footers in CodeIgniter</title>
	<atom:link href="http://jonathonhill.net/2009-08-27/how-to-handle-headers-and-footers-in-codeigniter/feed/" rel="self" type="application/rss+xml" />
	<link>http://jonathonhill.net/2009-08-27/how-to-handle-headers-and-footers-in-codeigniter/</link>
	<description>The notes, projects, and opinions of a meticulous 25-year old web developer.</description>
	<lastBuildDate>Wed, 04 Aug 2010 05:12:27 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Gabriel Pickl</title>
		<link>http://jonathonhill.net/2009-08-27/how-to-handle-headers-and-footers-in-codeigniter/comment-page-1/#comment-1104</link>
		<dc:creator>Gabriel Pickl</dc:creator>
		<pubDate>Sat, 26 Jun 2010 20:55:23 +0000</pubDate>
		<guid isPermaLink="false">http://jonathonhill.net/?p=185#comment-1104</guid>
		<description>Hello,
for some reason, extending the Loader class doesn&#039;t work that way in my case.

I wrote the following code in the file /system/application/libraries/MY_Loader.php

&lt;code&gt;class MY_Loader extends CI_Loader {
	public function MY_Loader() {
		parent::CI_Loader();
	}
	
	public function sayah() {
		get_instance()-&gt;test = &quot;ah&quot;;
	}
}&lt;/code&gt;

And tried to call &lt;strong&gt;$this-&gt;load-&gt;sayah();&lt;/strong&gt; in my Controller.

This gives me the following error:
&lt;b&gt;Fatal error&lt;/b&gt;:  Call to undefined method CI_Loader::sayah() in &lt;b&gt;C:\xampp\htdocs\mediavault\system\application\controllers\welcome.php&lt;/b&gt; on line &lt;b&gt;12&lt;/b&gt;

Apparently the code from the class MY_Loader isn&#039;t evaluated, and I have no idea why.

I&#039;m using CodeIgniter 1.7.2 and PHP 5.3.1</description>
		<content:encoded><![CDATA[<p>Hello,<br />
for some reason, extending the Loader class doesn&#8217;t work that way in my case.</p>
<p>I wrote the following code in the file /system/application/libraries/MY_Loader.php</p>
<p><code>class MY_Loader extends CI_Loader {<br />
	public function MY_Loader() {<br />
		parent::CI_Loader();<br />
	}</p>
<p>	public function sayah() {<br />
		get_instance()-&gt;test = "ah";<br />
	}<br />
}</code></p>
<p>And tried to call <strong>$this-&gt;load-&gt;sayah();</strong> in my Controller.</p>
<p>This gives me the following error:<br />
<b>Fatal error</b>:  Call to undefined method CI_Loader::sayah() in <b>C:\xampp\htdocs\mediavault\system\application\controllers\welcome.php</b> on line <b>12</b></p>
<p>Apparently the code from the class MY_Loader isn&#8217;t evaluated, and I have no idea why.</p>
<p>I&#8217;m using CodeIgniter 1.7.2 and PHP 5.3.1</p>
]]></content:encoded>
	</item>
</channel>
</rss>
