<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-5084769470783976494</id><updated>2011-04-21T19:55:10.108-07:00</updated><category term='codeigniter'/><category term='php'/><title type='text'>CodeIgniter Tutorials</title><subtitle type='html'>CodeIgniter Tutorials</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://codeignitertutorials.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5084769470783976494/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://codeignitertutorials.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Roman Kazakov</name><uri>http://www.blogger.com/profile/14156954819787238328</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>5</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5084769470783976494.post-40305054859968683</id><published>2009-05-10T07:08:00.001-07:00</published><updated>2009-05-12T09:21:20.431-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='php'/><category scheme='http://www.blogger.com/atom/ns#' term='codeigniter'/><title type='text'>Sending array to a view file [ Step 5 ]</title><content type='html'>Lets go back to the controller, at this point we done - pass  two simple strings to a view file.&lt;br /&gt;I like to send a different data type to view file, so I create a new index call todo and I like to send an array to a view file. Ok I got array with three elements in side index call todo.&lt;br /&gt;&lt;/span&gt;&lt;pre class="prettyprint"&gt;&lt;span style="font-size:100%;"&gt;class Blog extends Controller&lt;br /&gt;{&lt;br /&gt;function Index()&lt;br /&gt;{&lt;br /&gt;data['title'] = "My blog title";&lt;br /&gt; data['heaading'] = "My blog heading";&lt;br /&gt; data['todo'] = array( 'clean house','eat lunch','call man');&lt;br /&gt; this-&gt;load-&gt;view('blog_view', $data);&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;&lt;span style="font-size:100%;"&gt;I  create an order list and I use for each loop to do this , and you know that  I'am  using  an alternative PHP syntax using a column instead of an opening brace and like wise instead of an opening brace I use an endforeach construct now I copy an element to list element.&lt;br /&gt;&lt;/span&gt;&lt;pre class="prettyprint"&gt;&lt;span style="font-size:100%;"&gt;&amp;lt;html&gt;&lt;br /&gt;&amp;lt;head&gt;&lt;br /&gt;&amp;lt;title&gt; &amp;lt;?=$title; ?&gt; &amp;lt;/title&gt;&lt;br /&gt;&amp;lt;/head&gt;&lt;br /&gt;&amp;lt;body&gt;&lt;br /&gt;&amp;lt;h1&gt; &amp;lt;?=$heading ; ?&gt; &amp;lt;/h1&gt;&lt;br /&gt;&amp;lt;ol&gt;&lt;br /&gt;&amp;lt;?php foreach($todo as $item): ?&gt;&lt;br /&gt;&amp;lt;li&gt; &amp;lt;?= $item ?&gt; &amp;lt;/li&gt;&lt;br /&gt;&amp;lt;?php endforeach; ?&gt;&lt;br /&gt;&amp;lt;/ol&gt;&lt;br /&gt;&amp;lt;/body&gt;&lt;br /&gt;&amp;lt;/html&gt;&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;&lt;span style="font-size:100%;"&gt;So I reload a page you know see a todo list , so I can pass arrays to view files multidimensional array,objects, it's really use data type  you want to work with. One thing before I'am going to the controller and create a constructor, in PHP a constructor is a simply function that named identically to the class, in PHP5 it's a little a bit syntax if you use a local constructor you need to be override constructor that contain parent class the side effect is it will break you application.&lt;br /&gt;&lt;/span&gt;&lt;pre class="prettyprint"&gt;&lt;span style="font-size:100%;"&gt;class Blog extends Controller&lt;br /&gt;{&lt;br /&gt;function Blog()&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;function Index()&lt;br /&gt;{&lt;br /&gt;data['title'] = "My blog title";&lt;br /&gt; data['heaading'] = "My blog heading";&lt;br /&gt; data['todo'] = array( 'clean house', 'eat lunch' , 'call man');&lt;br /&gt; this-&gt;load-&gt;view ('blog_view', $data );&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;&lt;span style="font-size:100%;"&gt;If I reload a page you see that know I get an error message&lt;br /&gt;In line number 16.&lt;br /&gt;&lt;/span&gt;&lt;pre class="prettyprint"&gt;&lt;span style="font-size:100%;"&gt;Fatal error : Call to a member function view()  on non-object  in blog.php line 16.&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;&lt;span style="font-size:100%;"&gt;In order to fix this we need to explicitly call the constructor in the parent class.&lt;br /&gt;With that single line of code I reestablish that  relationship&lt;br /&gt;&lt;/span&gt;&lt;pre class="prettyprint"&gt;&lt;span style="font-size:100%;"&gt;class Blog extends Controller&lt;br /&gt;{&lt;br /&gt;function Blog()&lt;br /&gt;{&lt;br /&gt;   parent::controller();&lt;br /&gt;}&lt;br /&gt;function Index()&lt;br /&gt;{&lt;br /&gt;   data['title'] = "My blog title";&lt;br /&gt;   data['heaading'] = "My blog heading";&lt;br /&gt;   data['todo'] = array( 'clean house', 'eat lunch' , 'call man');&lt;br /&gt;   this-&gt;load-&gt;view ('blog_view', $data );&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;&lt;span style="font-size:100%;"&gt;and I can reload a page and that my application is working again.&lt;br /&gt;So remember  any time you use a constructor to explicitly  call your parent controller class.&lt;br /&gt;&lt;/span&gt;&lt;h2&gt;&lt;span style="font-size:100%;"&gt;That's all folks&lt;/span&gt;&lt;/h2&gt;&lt;span style="font-size:100%;"&gt;We created a controller , made a view file , generate some dynamic information that we pass to view file and this should see how easy is CodeIgniter to use. This is your first look in a model view controller approach I'll think you see very nice separation in your application logic and&lt;br /&gt;your display element, in later tutorials we will expand this information.&lt;br /&gt;You can see video tutorial &lt;br /&gt;&lt;a href="http://codeigniter.com/tutorials/watch/intro/"&gt;here&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.amazon.com/gp/product/0470282452?ie=UTF8&amp;tag=codeignitertu-20&amp;linkCode=as2&amp;camp=1789&amp;creative=9325&amp;creativeASIN=0470282452"&gt;&lt;img border="0" src="41U-m4eFAyL._SL160_PIsitb-sticker-arrow-big,TopRight,35,-73_OU01_.jpg"&gt;&lt;/a&gt;&lt;img src="http://www.assoc-amazon.com/e/ir?t=codeignitertu-20&amp;l=as2&amp;o=1&amp;a=0470282452" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5084769470783976494-40305054859968683?l=codeignitertutorials.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codeignitertutorials.blogspot.com/feeds/40305054859968683/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codeignitertutorials.blogspot.com/2009/05/sending-array-to-view-file-step-5_10.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5084769470783976494/posts/default/40305054859968683'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5084769470783976494/posts/default/40305054859968683'/><link rel='alternate' type='text/html' href='http://codeignitertutorials.blogspot.com/2009/05/sending-array-to-view-file-step-5_10.html' title='Sending array to a view file [ Step 5 ]'/><author><name>Roman Kazakov</name><uri>http://www.blogger.com/profile/14156954819787238328</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5084769470783976494.post-6467757689704559445</id><published>2009-05-10T06:58:00.001-07:00</published><updated>2009-05-12T08:09:19.276-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='php'/><category scheme='http://www.blogger.com/atom/ns#' term='codeigniter'/><title type='text'>Creating CodeIgniter Views [ Step 4 ]</title><content type='html'>It's not considerate a good practice to send an information to your web-browser  directly from your controller so create a correspondent view file to do that I name this one &lt;i&gt;blog_view.php&lt;/i&gt;  in the views folder Unlike controllers which must be named identically to class name,&lt;br /&gt;view files can be  what ever you want, I simply choose  this that correlation is clear for a&lt;br /&gt;tutorial, but  you can name  what ever type of abstraction your like. Your can add further organization  by  organization a sub folders  within a view folder to give you a dipper structure if you want.For now I just paste some simple  html&lt;br /&gt;&lt;/span&gt;&lt;pre class="prettyprint"&gt;&lt;span style="font-size:100%;"&gt;&amp;lt;html&gt;&lt;br /&gt;&amp;lt;head&gt;&lt;br /&gt;&amp;lt;title&gt; My First page &amp;lt;/title&gt;&lt;br /&gt;&amp;lt;/head&gt;&lt;br /&gt;&amp;lt;body&gt;&lt;br /&gt;&amp;lt;h1&gt; My First Heading  &amp;lt;/h1&gt;&lt;br /&gt;&amp;lt;/body&gt;&lt;br /&gt;&amp;lt;/html&gt;&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;&lt;span style="font-size:100%;"&gt;with a title and page heading, now that's done, I go back to the controller &lt;i&gt;blog.php&lt;/i&gt; and load a view file form the controller by replacing the echo statement with a view load function&lt;br /&gt;&lt;/span&gt;&lt;pre class="prettyprint"&gt;&lt;span style="font-size:100%;"&gt;class Blog extends Controller&lt;br /&gt;{&lt;br /&gt;function Index()&lt;br /&gt;{&lt;br /&gt;this-&gt;load-&gt;view (blog_view);&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;&lt;span style="font-size:100%;"&gt;you know that a  parameter I using is a same as  filename for the view file, you can use the file extension if you want but it not necessary.I can now go back to a browser and reload a page and see new view file is been serve up from the controller, at  this point, view file is just a static web page, so I want to replace some of the static elements with the dynamic once.&lt;br /&gt;&lt;/span&gt;&lt;h2&gt;&lt;span style="font-size:100%;"&gt;Adding dynamic data to view.&lt;/span&gt;&lt;/h2&gt;&lt;span style="font-size:100%;"&gt;&lt;a name="Addingdynamic"&gt;&lt;/a&gt;Going back  to the controller &lt;i&gt;blog.php&lt;/i&gt; I create a data array which control some dynamic information that pass to the view file,&lt;br /&gt;&lt;/span&gt;&lt;pre class="prettyprint"&gt;&lt;span style="font-size:100%;"&gt;class Blog extends Controller&lt;br /&gt;{&lt;br /&gt;function Index()&lt;br /&gt;{&lt;br /&gt;data['title'] = "My blog title";&lt;br /&gt;   data['heaading'] = "My blog heading";&lt;br /&gt;   this-&gt;load-&gt;view ('blog_view', $data );&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;&lt;span style="font-size:100%;"&gt;Now  I can take this data array and place it as a second parameter in view loading function and pass that information under the view file, in doing this  the index of the var array will also be a converted to variables to make them easily work with a view files. So I go to a view file and replace static information with dynamic information, with some simple PHP&lt;br /&gt;&lt;/span&gt;&lt;pre class="prettyprint"&gt;&lt;span style="font-size:100%;"&gt;&amp;lt;html&gt;&lt;br /&gt;&amp;lt;head&gt;&lt;br /&gt;&amp;lt;title&gt; &amp;lt;?php echo $title; ?&gt; &amp;lt;/title&gt;&lt;br /&gt;&amp;lt;/head&gt;&lt;br /&gt;&amp;lt;body&gt;&lt;br /&gt;&amp;lt;h1&gt; &amp;lt;?php echo $heading ; ?&gt; &amp;lt;/h1&gt;&lt;br /&gt;&amp;lt;/body&gt;&lt;br /&gt;&amp;lt;/html&gt;&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;&lt;span style="font-size:100%;"&gt;If now I save and reload page in a browser you can see that now our controller is dynamically passing the title and a heeding in  the view file. If you service support PHP short tags you can simplify this a bit , replace "?php echo" statement with an equal sine eliminating semicolons, and simplify control structure. If you build you site with a help of the web-designer, this can be beneficial because it reduce the amount a PHP code on the page and make a page look cleaner.&lt;br /&gt;&lt;/span&gt;&lt;pre class="prettyprint"&gt;&lt;span style="font-size:100%;"&gt;&amp;lt;html&gt;&lt;br /&gt;&amp;lt;head&gt;&lt;br /&gt;&amp;lt;title&gt; &amp;lt;?=$title; ?&gt; &amp;lt;/title&gt;&lt;br /&gt;&amp;lt;/head&gt;&lt;br /&gt;&amp;lt;body&gt;&lt;br /&gt;&amp;lt;h1&gt; &amp;lt;?=$heading ; ?&gt; &amp;lt;/h1&gt;&lt;br /&gt;&amp;lt;/body&gt;&lt;br /&gt;&amp;lt;/html&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5084769470783976494-6467757689704559445?l=codeignitertutorials.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codeignitertutorials.blogspot.com/feeds/6467757689704559445/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codeignitertutorials.blogspot.com/2009/05/creating-codeigniter-views-step-4_10.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5084769470783976494/posts/default/6467757689704559445'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5084769470783976494/posts/default/6467757689704559445'/><link rel='alternate' type='text/html' href='http://codeignitertutorials.blogspot.com/2009/05/creating-codeigniter-views-step-4_10.html' title='Creating CodeIgniter Views [ Step 4 ]'/><author><name>Roman Kazakov</name><uri>http://www.blogger.com/profile/14156954819787238328</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5084769470783976494.post-8145212807923444984</id><published>2009-05-10T06:53:00.001-07:00</published><updated>2009-05-12T08:09:22.344-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='php'/><category scheme='http://www.blogger.com/atom/ns#' term='codeigniter'/><title type='text'>Creating CodeIgniter Controller [ Step 3]</title><content type='html'>Any  application you develop with CodeIgniter is going to  minimally contain controllers and views. So lets build a controller. When you name your file It's must be the same name as the class of the controller with a php extension. I call  this one blog so I can use this in next tutorial.&lt;br /&gt;Create file &lt;i&gt;blog.php&lt;/i&gt; in &lt;i&gt;Controller folder&lt;/i&gt; with such code inside&lt;br /&gt;&lt;/span&gt;&lt;pre class="prettyprint"&gt;&lt;span style="font-size:100%;"&gt;class Blog extends Controller&lt;br /&gt;{&lt;br /&gt;Function Index()&lt;br /&gt;{&lt;br /&gt;echo 'Hello World ';&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;&lt;h2&gt;&lt;span style="font-size:100%;"&gt;Who is mister "controller"?&lt;/span&gt;&lt;/h2&gt;&lt;span style="font-size:100%;"&gt;&lt;a name="mister"&gt;&lt;/a&gt;A controller simply a php class, one thing you need to remember, when you name your controller it's need to be capitalize. Remember that a class and file name must match, but the class name must be capitalize and file name will not. The second thing is that must extend the parent controller class, the system controller by extending the main controller class you allow your local class to inherent all property, methods and resources the CodeIgniter makes available to your.&lt;br /&gt;We got a simple function that I call  Index, index always will be a default function within your class and I show your how that work in a moment.&lt;br /&gt;&lt;/span&gt;&lt;h2&gt;&lt;span style="font-size:100%;"&gt;Understanding CodeIgniter URL's.&lt;/span&gt;&lt;/h2&gt; &lt;span style="font-size:100%;"&gt;In a model-view-controller approach the first segment correlates to a class name you wish to invoke and the second segment correlates to a function name within the class , I can accomplish the same thing on web page by typing index   www.YouHostName.com/CodeIgniter/index.php/blog/index.php as the second segment  and explicitly call that function , but the index function is always call by default. Now you going to a browser and type a file name in to a first segment of the URI www.DomainOnWhichYouInstallCodeIgniter.com/CodeIgniter/index.php/blog , your can see that we know getting a "Hello world " statement.&lt;br /&gt;I should also mention that &lt;i&gt;index.php&lt;/i&gt; file  in our URL can easily be removed with .htaccess file, so if you like clean URL's you can easily accomplish this.&lt;br /&gt;&lt;/span&gt;&lt;h2&gt;&lt;span style="font-size:100%;"&gt;Set up default controller.&lt;/span&gt;&lt;/h2&gt;&lt;span style="font-size:100%;"&gt;&lt;a name="Setupdefaultcontroller"&gt;&lt;/a&gt;If I want reload page using only the front controller again you see I still get a 404 page because by even with a made of controller we hadn't told CodeIgniter to show anything by default.&lt;br /&gt;There is no assumption made by CodeIgniter that a particular controller is what your want show by default we can do that by going into a config folder and opening the &lt;i&gt;routes.php&lt;/i&gt; file&lt;br /&gt;&lt;/span&gt;&lt;pre class="prettyprint"&gt;&lt;span style="font-size:100%;"&gt;$route['default_controller'] = "welcome";&lt;br /&gt;$route['scaffolding_trigger'] = "";&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;&lt;span style="font-size:100%;"&gt;This file help us creates mapping  instructor's for a URL and amount of other things allow us to specify a default controller, if I change this&lt;br /&gt;&lt;/span&gt;&lt;pre class="prettyprint"&gt;&lt;span style="font-size:100%;"&gt;$route['default_controller'] = "welcome";&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;&lt;span style="font-size:100%;"&gt;to&lt;br /&gt;&lt;/span&gt;&lt;pre class="prettyprint"&gt;&lt;span style="font-size:100%;"&gt;$route['default_controller'] = "blog";&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;&lt;span style="font-size:100%;"&gt;a controller that I just create and than reload a page , it's know serving our controller Blog up as a default.&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5084769470783976494-8145212807923444984?l=codeignitertutorials.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codeignitertutorials.blogspot.com/feeds/8145212807923444984/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codeignitertutorials.blogspot.com/2009/05/creating-codeigniter-controller-step-3_10.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5084769470783976494/posts/default/8145212807923444984'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5084769470783976494/posts/default/8145212807923444984'/><link rel='alternate' type='text/html' href='http://codeignitertutorials.blogspot.com/2009/05/creating-codeigniter-controller-step-3_10.html' title='Creating CodeIgniter Controller [ Step 3]'/><author><name>Roman Kazakov</name><uri>http://www.blogger.com/profile/14156954819787238328</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5084769470783976494.post-6822698034905585705</id><published>2009-05-10T06:46:00.001-07:00</published><updated>2009-05-12T08:09:25.438-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='php'/><category scheme='http://www.blogger.com/atom/ns#' term='codeigniter'/><title type='text'>CodeIgniter Installation [ Step 2 ]</title><content type='html'>Installation is quite easy, read installation instructions in &lt;br /&gt;&lt;a href="http://codeigniter.com/user_guide/installation/index.html"&gt; user guide&lt;/a&gt;. &lt;br /&gt;When you install the system you have directory struсture that look like this.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_3t7f8u2WcQQ/SfMK5hGpYOI/AAAAAAAAAAY/aAdKWPqDXAI/s1600-h/CodeIgniterFolderStructure.JPG"&gt;&lt;br /&gt;&lt;br /&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 151px; height: 391px;" src="http://1.bp.blogspot.com/_3t7f8u2WcQQ/SfMK5hGpYOI/AAAAAAAAAAY/aAdKWPqDXAI/s400/CodeIgniterFolderStructure.JPG" alt="" id="BLOGGER_PHOTO_ID_5328614767364497634" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;h2&gt;&lt;span style="font-size:100%;"&gt;CodeIgniter Folders Overview&lt;/span&gt;&lt;/h2&gt; &lt;span style="font-size:100%;"&gt;&lt;a name="CodeIgniterFoldersOverview"&gt;&lt;/a&gt;I like to focus I like to focus on &lt;i&gt;Application folder&lt;/i&gt;, this where we'll be working most of the time as we build our applications. We'll be building controllers, this is a PHP classes that design to take incoming HTTP request , we'll be building view files , this will be html pages or they can be page  fragments like  headers footers or side bars. There also &lt;i&gt;Error folder&lt;/i&gt;, this folder contains a couple of templates&lt;br /&gt;&lt;/span&gt;    &lt;ul&gt;&lt;li&gt;&lt;span style="font-size:100%;"&gt; error_404.php&lt;br /&gt;&lt;/span&gt;    &lt;/li&gt;&lt;li&gt;&lt;span style="font-size:100%;"&gt; error_db.php&lt;br /&gt;&lt;/span&gt;    &lt;/li&gt;&lt;li&gt;&lt;span style="font-size:100%;"&gt; error_general.php&lt;br /&gt;&lt;/span&gt;    &lt;/li&gt;&lt;li&gt;&lt;span style="font-size:100%;"&gt; error_php.php&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt; &lt;span style="font-size:100%;"&gt;to display various errors types. For instance if you want load  "www.DomainOnWhichYouInstallCodeIgniter.com/CodeIgniter/index.php" , you'll see we getting a 404 page. Which happens to correspondent to this template &lt;i&gt;error_404.php&lt;/i&gt;.&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5084769470783976494-6822698034905585705?l=codeignitertutorials.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codeignitertutorials.blogspot.com/feeds/6822698034905585705/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codeignitertutorials.blogspot.com/2009/05/codeigniter-installation-step-2_10.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5084769470783976494/posts/default/6822698034905585705'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5084769470783976494/posts/default/6822698034905585705'/><link rel='alternate' type='text/html' href='http://codeignitertutorials.blogspot.com/2009/05/codeigniter-installation-step-2_10.html' title='CodeIgniter Installation [ Step 2 ]'/><author><name>Roman Kazakov</name><uri>http://www.blogger.com/profile/14156954819787238328</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_3t7f8u2WcQQ/SfMK5hGpYOI/AAAAAAAAAAY/aAdKWPqDXAI/s72-c/CodeIgniterFolderStructure.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5084769470783976494.post-8988709697561221351</id><published>2009-05-10T06:34:00.000-07:00</published><updated>2009-05-12T08:18:33.559-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='php'/><category scheme='http://www.blogger.com/atom/ns#' term='codeigniter'/><title type='text'>CodeIgniter Introductory Tutorial [ Step 1 ]</title><content type='html'>1. &lt;a href="http://codeignitertutorials.blogspot.com/2009/05/codeigniter-installation-step-2_10.html"&gt;CodeIgniter Installation&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;2. &lt;a href="http://codeignitertutorials.blogspot.com/2009/05/creating-codeigniter-controller-step-3_10.html"&gt; Creating CodeIgniter Controller&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;3. &lt;a href="http://codeignitertutorials.blogspot.com/2009/05/creating-codeigniter-views-step-4_10.html"&gt;Creating CodeIgniter View's &lt;/a&gt;&lt;br /&gt;&lt;br /&gt;4. &lt;a href="http://codeignitertutorials.blogspot.com/2009/05/sending-array-to-view-file-step-5_10.html"&gt;Sending array to a view file&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:100%;"&gt;Hi guys, in order to demonstrated you CodeIngniter I'am will create a simple dynamic web page.&lt;br /&gt;If you haven't  read the introduction section of the &lt;a href="http://codeigniter.com/user_guide/overview/getting_started.html"&gt;user guide&lt;/a&gt;&lt;br /&gt;I encourage you to go ahead and do so. In particular you should read that the section where discus is &lt;a href="http://codeigniter.com/user_guide/overview/mvc.html"&gt;Model-View-Controller&lt;/a&gt; approach to application design since CodeIngniter is based on that approach.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5084769470783976494-8988709697561221351?l=codeignitertutorials.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codeignitertutorials.blogspot.com/feeds/8988709697561221351/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codeignitertutorials.blogspot.com/2009/05/codeigniter-introductory-tutorial-step.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5084769470783976494/posts/default/8988709697561221351'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5084769470783976494/posts/default/8988709697561221351'/><link rel='alternate' type='text/html' href='http://codeignitertutorials.blogspot.com/2009/05/codeigniter-introductory-tutorial-step.html' title='CodeIgniter Introductory Tutorial [ Step 1 ]'/><author><name>Roman Kazakov</name><uri>http://www.blogger.com/profile/14156954819787238328</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
