<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Dedy's Personal Site - Web Developer  - PHP Developer - PHP Freelancer &#187; codeigniter</title>
	<atom:link href="http://www.geraiweb.com/wordpress/tag/codeigniter/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.geraiweb.com/wordpress</link>
	<description>Get to know me.</description>
	<lastBuildDate>Thu, 03 Jun 2010 05:06:45 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Custom 404 page in codeigniter</title>
		<link>http://www.geraiweb.com/wordpress/2009/06/26/custom-404-page-in-codeigniter/</link>
		<comments>http://www.geraiweb.com/wordpress/2009/06/26/custom-404-page-in-codeigniter/#comments</comments>
		<pubDate>Fri, 26 Jun 2009 10:43:06 +0000</pubDate>
		<dc:creator>dedy</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Pemrograman]]></category>
		<category><![CDATA[codeigniter]]></category>

		<guid isPermaLink="false">http://www.geraiweb.com/wordpress/?p=205</guid>
		<description><![CDATA[Helo,
   I found this in the internet when I need to custom my 404 page . Because the default 404 page from codeigniter is so &#8216;default&#8217;   .
When the application can not found the page requested, it handle by the Exceptions in the codeigniter , function show_404.
You can find the file in [...]]]></description>
			<content:encoded><![CDATA[<p>Helo,</p>
<p>   I found this in the internet when I need to custom my 404 page . Because the default 404 page from codeigniter is so &#8216;default&#8217; <img src='http://www.geraiweb.com/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  .</p>
<p>When the application can not found the page requested, it handle by the Exceptions in the codeigniter , function show_404.</p>
<p>You can find the file in the &#8216;./libraries/Exceptions.php&#8217; .</p>
<p>In order to create your own 404 page, you just need to override the function show_404($page = &#8221;) .</p>
<p>How we do that ? </p>
<p>You just need to create a file named : &#8216;MY_Exceptions.php&#8217; , and put it in the folder &#8216;./application/libraries&#8217;.</p>
<p>And the content of the file should be like this : </p>
<p><code></p>
<pre class="brush: php">
&lt;?

	class MY_Exceptions extends CI_Exceptions{

	  	public function __construct(){
	      parent::__construct();
	    }

		function show_404($page = &#039;&#039;){
			redirect(&#039;404&#039;,&#039;refresh&#039;);  // you can change this with what you want
			exit;
		}
	}
?&gt;
</pre>
<p></code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.geraiweb.com/wordpress/2009/06/26/custom-404-page-in-codeigniter/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
