<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Shared Code</title>
	<atom:link href="http://sharedcode.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://sharedcode.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Mon, 01 Dec 2008 04:34:38 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='sharedcode.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Shared Code</title>
		<link>http://sharedcode.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://sharedcode.wordpress.com/osd.xml" title="Shared Code" />
	<atom:link rel='hub' href='http://sharedcode.wordpress.com/?pushpress=hub'/>
		<item>
		<title>&#8216;Hello World&#8217; with CodeIgniter</title>
		<link>http://sharedcode.wordpress.com/2008/12/01/hello-world-with-codeigniter/</link>
		<comments>http://sharedcode.wordpress.com/2008/12/01/hello-world-with-codeigniter/#comments</comments>
		<pubDate>Mon, 01 Dec 2008 04:34:38 +0000</pubDate>
		<dc:creator>d4v0</dc:creator>
				<category><![CDATA[CodeIgniter]]></category>

		<guid isPermaLink="false">http://sharedcode.wordpress.com/?p=3</guid>
		<description><![CDATA[Hi everybody! This an english version of my other blog. Well, I hope you will understand if I have some mistakes redacting this post and the rest but My native language is Spanish and I just speak a little English. Well, here you have my first post where I&#8217;ll show you how to build a [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sharedcode.wordpress.com&amp;blog=5700566&amp;post=3&amp;subd=sharedcode&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hi everybody! This an english version of my other <a title="Free Code Zone" href="http://freecodezone.wordpress.com/" target="_blank">blog</a>. Well, I hope you will understand if I have some mistakes redacting this post and the rest but My native language is Spanish and I just speak a little English.</p>
<p>Well, here you have my first post where I&#8217;ll show you how to build a simple example, the most used&#8230; yes&#8230; the famous &#8216;Hello World&#8217; with CodeIgniter.</p>
<p>So, let&#8217;s start!</p>
<p>First of all, we need to download the framework called <a href="http://codeigniter.com/downloads/" target="_blank">CodeIgniter</a>. Actually there are several frameworks on the Web, but this one works very well. It&#8217;s very light and powerful.</p>
<p>Well, it&#8217;s not necessary configure any files from this framework, at least not yet. You have to download this framework and then extract it into your folder &#8216;www&#8217;. ( You know&#8230; the folder where you save all your PHP aplications).</p>
<p>If we already have all the framework in our folder, so we can run the aplication. Go to your browser and write &#8216;http://localhost/&#8217; + the name of the folder where you have the framework. In my case, I have extracted it in &#8216;www\codeigniter\&#8217; so I will write in my url: &#8216;http://localhost/codeigniter&#8217;</p>
<p>If you followed me so you are seeing this in your browser:</p>
<p style="text-align:left;"><a href="http://freecodezone.files.wordpress.com/2008/10/welcomeci.jpg"><img class="size-full wp-image-15 aligncenter" title="welcomeci" src="http://freecodezone.files.wordpress.com/2008/10/welcomeci.jpg?w=544" alt=""   /></a></p>
<p style="text-align:left;">
<p style="text-align:left;">It means that it works perfect. But we see that if we write: &#8216;http://localhost/codeigniter/index.php&#8217;, we will get the same. It is because CodeIgniter works with this file and loads by default working as a router intercepting the request we did. And now we wonder, why the welcome page works automatically. Well, the index.php loads a controller which we write in a url like this: &#8216;http://localhost/codeigniter/index.php/<strong>welcome&#8217;</strong>. In this case, that word: &#8216;welcome&#8217; is the name of the file where is all what we see.</p>
<p style="text-align:left;">
<p style="text-align:left;"><a href="http://freecodezone.files.wordpress.com/2008/10/welcomefileci.jpg"><img class="aligncenter size-full wp-image-16" title="welcomefileci" src="http://freecodezone.files.wordpress.com/2008/10/welcomefileci.jpg?w=544" alt=""   /></a></p>
<p style="text-align:left;">CodeIgniter&#8217;s url works like this: next to &#8216;index.php&#8217; goes &#8216;controller/function/parameter&#8217;, and if we write &#8216;http://localhost/codeigniter/index.php&#8217; so it loads &#8216;<em><strong>welcome.php</strong></em>&#8216; because CodeIgniter configures this controller by default, and it&#8217;s something that we can modify, but we see it in other post of this blog.</p>
<p style="text-align:left;">Well, let&#8217;s continue with our example: &#8216;hello world&#8217;.</p>
<p style="text-align:left;">Create a new file, in my case I will call it: <strong><em>&#8216;saludo.php&#8217; </em></strong>and I will save it in &#8216;www\codeigniter\system\application\controllers\&#8217;</p>
<p style="text-align:left;">
<p style="text-align:left;">Well, in that file we will write this:</p>
<p><pre class="brush: php;">
&lt; ?PHP
class saludo extends Controller
{
	function index()
	{
		echo 'Hola mundo!';
	}
}
?&gt;
</pre></p>
<p>Done! Now let&#8217;s go to our browser and write the url, in my case: &#8216;http://localhost/codeigniter/index.php/saludo&#8217;</p>
<p>It&#8217;s time to explain you the url.</p>
<p>We see before to &#8216;index.php&#8217; this &#8216;codeigniter&#8217;. Well, as I said before, that&#8217;s the name of the folder where I extract the framework and obviously our aplication too.</p>
<p>About &#8216;index.php&#8217;, it was explained in the first lines. Finally, we see &#8216;saludo&#8217;. Well, it refers to my controller &#8216;saludo&#8217;, where there is a class called: &#8216;Saludo&#8217;. All of the controllers that we create have to contain a class with the same name but the first letter in capital letter.</p>
<p>Anyway, the result is:</p>
<p><a href="http://freecodezone.files.wordpress.com/2008/10/saludo1.jpg"><img class="aligncenter size-full wp-image-18" title="saludo1" src="http://freecodezone.files.wordpress.com/2008/10/saludo1.jpg?w=544" alt=""   /></a></p>
<p>With this, I am trying to help you to learn using CodeIgniter. any suggestions, corrections, etc. so leave me a comment.</p>
<p>That&#8217;s all for this post!</p>
<p>Thanks!  =)</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sharedcode.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sharedcode.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sharedcode.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sharedcode.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sharedcode.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sharedcode.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sharedcode.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sharedcode.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sharedcode.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sharedcode.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sharedcode.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sharedcode.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sharedcode.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sharedcode.wordpress.com/3/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sharedcode.wordpress.com&amp;blog=5700566&amp;post=3&amp;subd=sharedcode&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sharedcode.wordpress.com/2008/12/01/hello-world-with-codeigniter/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2ae092f2a19a5e8d0341b739ca3e35f9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Emilio Campos</media:title>
		</media:content>

		<media:content url="http://freecodezone.files.wordpress.com/2008/10/welcomeci.jpg" medium="image">
			<media:title type="html">welcomeci</media:title>
		</media:content>

		<media:content url="http://freecodezone.files.wordpress.com/2008/10/welcomefileci.jpg" medium="image">
			<media:title type="html">welcomefileci</media:title>
		</media:content>

		<media:content url="http://freecodezone.files.wordpress.com/2008/10/saludo1.jpg" medium="image">
			<media:title type="html">saludo1</media:title>
		</media:content>
	</item>
		<item>
		<title>Hello world!</title>
		<link>http://sharedcode.wordpress.com/2008/12/01/hello-world/</link>
		<comments>http://sharedcode.wordpress.com/2008/12/01/hello-world/#comments</comments>
		<pubDate>Mon, 01 Dec 2008 03:14:03 +0000</pubDate>
		<dc:creator>d4v0</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Welcome to WordPress.com. This is your first post. Edit or delete it and start blogging!<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sharedcode.wordpress.com&amp;blog=5700566&amp;post=1&amp;subd=sharedcode&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Welcome to <a href="http://wordpress.com/">WordPress.com</a>. This is your first post. Edit or delete it and start blogging!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sharedcode.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sharedcode.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sharedcode.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sharedcode.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sharedcode.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sharedcode.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sharedcode.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sharedcode.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sharedcode.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sharedcode.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sharedcode.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sharedcode.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sharedcode.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sharedcode.wordpress.com/1/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sharedcode.wordpress.com&amp;blog=5700566&amp;post=1&amp;subd=sharedcode&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sharedcode.wordpress.com/2008/12/01/hello-world/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2ae092f2a19a5e8d0341b739ca3e35f9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Emilio Campos</media:title>
		</media:content>
	</item>
	</channel>
</rss>
