CodeIgniter installed
[living-lab-site.git] / user_guide / overview / at_a_glance.html
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
3 <head>
4
5 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6 <title>CodeIgniter at a Glance : CodeIgniter User Guide</title>
7
8 <style type='text/css' media='all'>@import url('../userguide.css');</style>
9 <link rel='stylesheet' type='text/css' media='all' href='../userguide.css' />
10
11 <script type="text/javascript" src="../nav/nav.js"></script>
12 <script type="text/javascript" src="../nav/prototype.lite.js"></script>
13 <script type="text/javascript" src="../nav/moo.fx.js"></script>
14 <script type="text/javascript" src="../nav/user_guide_menu.js"></script>
15
16 <meta http-equiv='expires' content='-1' />
17 <meta http-equiv= 'pragma' content='no-cache' />
18 <meta name='robots' content='all' />
19 <meta name='author' content='ExpressionEngine Dev Team' />
20 <meta name='description' content='CodeIgniter User Guide' />
21
22 </head>
23 <body>
24
25 <!-- START NAVIGATION -->
26 <div id="nav"><div id="nav_inner"><script type="text/javascript">create_menu('../');</script></div></div>
27 <div id="nav2"><a name="top"></a><a href="javascript:void(0);" onclick="myHeight.toggle();"><img src="../images/nav_toggle_darker.jpg" width="154" height="43" border="0" title="Toggle Table of Contents" alt="Toggle Table of Contents" /></a></div>
28 <div id="masthead">
29 <table cellpadding="0" cellspacing="0" border="0" style="width:100%">
30 <tr>
31 <td><h1>CodeIgniter User Guide Version 2.0.2</h1></td>
32 <td id="breadcrumb_right"><a href="../toc.html">Table of Contents Page</a></td>
33 </tr>
34 </table>
35 </div>
36 <!-- END NAVIGATION -->
37
38
39 <!-- START BREADCRUMB -->
40 <table cellpadding="0" cellspacing="0" border="0" style="width:100%">
41 <tr>
42 <td id="breadcrumb">
43 <a href="http://codeigniter.com/">CodeIgniter Home</a> &nbsp;&#8250;&nbsp;
44 <a href="../index.html">User Guide Home</a> &nbsp;&#8250;&nbsp;
45 What is CodeIgniter?
46 </td>
47 <td id="searchbox"><form method="get" action="http://www.google.com/search"><input type="hidden" name="as_sitesearch" id="as_sitesearch" value="codeigniter.com/user_guide/" />Search User Guide&nbsp; <input type="text" class="input" style="width:200px;" name="q" id="q" size="31" maxlength="255" value="" />&nbsp;<input type="submit" class="submit" name="sa" value="Go" /></form></td>
48 </tr>
49 </table>
50 <!-- END BREADCRUMB -->
51
52 <br clear="all" />
53
54
55 <!-- START CONTENT -->
56 <div id="content">
57
58 <h1>CodeIgniter at a Glance</h1>
59
60
61 <h2>CodeIgniter is an Application Framework</h2>
62
63 <p>CodeIgniter is a toolkit for people who build web applications using PHP.  Its goal is to enable you to develop projects much faster than you could if you were writing code
64 from scratch, by providing a rich set of libraries for commonly needed tasks, as well as a simple interface and
65 logical structure to access these libraries. CodeIgniter lets you creatively focus on your project by
66 minimizing the amount of code needed for a given task.</p>
67
68 <h2>CodeIgniter is Free</h2>
69 <p>CodeIgniter is licensed under an Apache/BSD-style open source license so you can use it however you please.
70 For more information please read the <a href="../license.html">license agreement</a>.</p>
71
72 <h2>CodeIgniter is Light Weight</h2>
73 <p>Truly light weight.  The core system requires only a few very small libraries. This is in stark contrast to many frameworks that require significantly more resources.
74 Additional libraries are loaded dynamically upon request, based on your needs for a given process, so the base system
75 is very lean and quite fast.
76 </p>
77
78 <h2>CodeIgniter is Fast</h2>
79 <p>Really fast. We challenge you to find a framework that has better performance than CodeIgniter.</p>
80
81
82 <h2>CodeIgniter Uses M-V-C</h2>
83 <p>CodeIgniter uses the Model-View-Controller approach, which allows great separation between logic and presentation.
84 This is particularly good for projects in which designers are working with your template files, as the code these file contain will be minimized. We describe MVC in more detail on its own page.</p>
85
86 <h2>CodeIgniter Generates Clean URLs</h2>
87 <p>The URLs generated by CodeIgniter are clean and search-engine friendly.  Rather than using the standard "query string"
88 approach to URLs that is synonymous with dynamic systems, CodeIgniter uses a segment-based approach:</p>
89
90 <code>example.com/<var>news</var>/<dfn>article</dfn>/<samp>345</samp></code>
91
92 <p>Note: By default the index.php file is included in the URL but it can be removed using a simple .htaccess file.</p>
93
94 <h2>CodeIgniter Packs a Punch</h2>
95 <p>CodeIgniter comes with  full-range of libraries that enable the most commonly needed web development tasks,
96 like accessing a database, sending email, validating form data, maintaining sessions, manipulating images, working with XML-RPC data and
97 much more.</p>
98
99 <h2>CodeIgniter is Extensible</h2>
100 <p>The system can be easily extended through the use of your own libraries, helpers, or through class extensions or system hooks.</p>
101
102
103 <h2>CodeIgniter Does Not Require a Template Engine</h2>
104 <p>Although CodeIgniter <em>does</em> come with a simple template parser that can be optionally used, it does not force you to use one.
105
106 Template engines simply can not match the performance of native PHP, and the syntax that must be learned to use a template
107 engine is usually only marginally easier than learning the basics of PHP.  Consider this block of PHP code:</p>
108
109 <code>&lt;ul><br />
110 <br />
111 &lt;?php foreach ($addressbook as $name):?><br />
112 <br />
113 &lt;li>&lt;?=$name?>&lt;/li><br />
114 <br />
115 &lt;?php endforeach; ?><br />
116 <br />
117 &lt;/ul></code>
118
119 <p>Contrast this with the pseudo-code used by a template engine:</p>
120
121 <code>&lt;ul><br />
122 <br />
123 {foreach from=$addressbook item="name"}<br />
124 <br />
125 &lt;li>{$name}&lt;/li><br />
126 <br />
127 {/foreach}<br />
128 <br />
129 &lt;/ul></code>
130
131 <p>Yes, the template engine example is a bit cleaner, but it comes at the price of performance, as the pseudo-code must be converted
132 back into PHP to run. Since one of our goals is <em>maximum performance</em>, we opted to not require the use of a template engine.</p>
133
134
135 <h2>CodeIgniter is Thoroughly Documented</h2>
136 <p>Programmers love to code and hate to write documentation.  We're no different, of course, but
137 since documentation is <strong>as important</strong> as the code itself,
138 we are committed to doing it. Our source code is extremely clean and well commented as well.</p>
139
140
141 <h2>CodeIgniter has a Friendly Community of Users</h2>
142
143 <p>Our growing community of users can be seen actively participating in our <a href="http://codeigniter.com/forums/">Community Forums</a>.</p>
144
145
146 </div>
147 <!-- END CONTENT -->
148
149
150 <div id="footer">
151 <p>
152 Previous Topic:&nbsp;&nbsp;<a href="getting_started.html">Getting Started</a>
153 &nbsp;&nbsp;&nbsp;&middot;&nbsp;&nbsp;
154 <a href="#top">Top of Page</a>&nbsp;&nbsp;&nbsp;&middot;&nbsp;&nbsp;
155 <a href="../index.html">User Guide Home</a>&nbsp;&nbsp;&nbsp;&middot;&nbsp;&nbsp;
156 Next Topic:&nbsp;&nbsp;<a href="cheatsheets.html">CodeIgniter Cheatsheets</a>
157 </p>
158 <p><a href="http://codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006 - 2011 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">EllisLab, Inc.</a></p>
159 </div>
160
161 </body>
162 </html>