diff options
Diffstat (limited to 'user_guide/general')
25 files changed, 109 insertions, 109 deletions
diff --git a/user_guide/general/alternative_php.html b/user_guide/general/alternative_php.html index a06a208ee..2e2e562e9 100644 --- a/user_guide/general/alternative_php.html +++ b/user_guide/general/alternative_php.html @@ -12,7 +12,7 @@ <script type="text/javascript" src="../nav/moo.fx.js"></script>
<script type="text/javascript">
window.onload = function() {
- myHeight = new fx.Height('nav', {duration: 400});
+ myHeight = new fx.Height('nav', {duration: 400});
myHeight.hide();
}
</script>
@@ -62,8 +62,8 @@ Alternate PHP Syntax <h1>Alternate PHP Syntax for View Files</h1>
-<p>If you do not utilize Code Igniter's <a href="../libraries/parser.html">template engine</a>, you'll be using pure PHP
-in your View files. To minimize the PHP code in these files, and to make it easier to identify the code blocks it is recommended that you use PHPs alternative
+<p>If you do not utilize Code Igniter's <a href="../libraries/parser.html">template engine</a>, you'll be using pure PHP
+in your View files. To minimize the PHP code in these files, and to make it easier to identify the code blocks it is recommended that you use PHPs alternative
syntax for control structures and echo statements. If you are not familiar with this syntax, it allows you to eliminate the braces from your code,
and eliminate "echo" statements.</p>
@@ -83,7 +83,7 @@ be that "short tags" are disabled in your PHP ini file.</p> <h2>Alternative Control Structures</h2>
-<p>Controls structures, like <var>if</var>, <var>for</var>, <var>foreach</var>, and <var>while</var> can be
+<p>Controls structures, like <var>if</var>, <var>for</var>, <var>foreach</var>, and <var>while</var> can be
written in a simplified format as well. Here is an example using foreach:</p>
<code>
@@ -101,7 +101,7 @@ written in a simplified format as well. Here is an example using foreach:</p> Each of the control structures listed above has a similar closing syntax:
<var>endif</var>, <var>endfor</var>, <var>endforeach</var>, and <var>endwhile</var></p>
-<p>Also notice that instead of using a semicolon after each structure (except the last one), there is a colon. This is
+<p>Also notice that instead of using a semicolon after each structure (except the last one), there is a colon. This is
important!</p>
<p>Here is another example, using if/elseif/else. Notice the colons:</p>
diff --git a/user_guide/general/ancillary_classes.html b/user_guide/general/ancillary_classes.html index f04556dea..71d88f3b9 100644 --- a/user_guide/general/ancillary_classes.html +++ b/user_guide/general/ancillary_classes.html @@ -12,7 +12,7 @@ <script type="text/javascript" src="../nav/moo.fx.js"></script>
<script type="text/javascript">
window.onload = function() {
- myHeight = new fx.Height('nav', {duration: 400});
+ myHeight = new fx.Height('nav', {duration: 400});
myHeight.hide();
}
</script>
@@ -62,7 +62,7 @@ Creating Ancillary Classes <h1>Creating Ancillary Classes</h1>
-<p>In some cases you may want to develop classes that exist apart from your controllers but have the ability to
+<p>In some cases you may want to develop classes that exist apart from your controllers but have the ability to
utilize all of Code Igniter's resources. This is easily possible as you'll see.</p>
<h2>get_instance()</h2>
@@ -80,7 +80,7 @@ This function returns the main Code Igniter object.</p> etc.
</code>
-<p><kbd>$this</kbd>, however, only works within your controllers, your models, or your views.
+<p><kbd>$this</kbd>, however, only works within your controllers, your models, or your views.
If you would like to use Code Igniter's classes from within your own custom classes you can do so as follows:</p>
diff --git a/user_guide/general/autoloader.html b/user_guide/general/autoloader.html index 36893e916..bbb839dd7 100644 --- a/user_guide/general/autoloader.html +++ b/user_guide/general/autoloader.html @@ -12,7 +12,7 @@ <script type="text/javascript" src="../nav/moo.fx.js"></script>
<script type="text/javascript">
window.onload = function() {
- myHeight = new fx.Height('nav', {duration: 400});
+ myHeight = new fx.Height('nav', {duration: 400});
myHeight.hide();
}
</script>
diff --git a/user_guide/general/caching.html b/user_guide/general/caching.html index 6b4c3d1a5..1e3a6bcad 100644 --- a/user_guide/general/caching.html +++ b/user_guide/general/caching.html @@ -12,7 +12,7 @@ <script type="text/javascript" src="../nav/moo.fx.js"></script>
<script type="text/javascript">
window.onload = function() {
- myHeight = new fx.Height('nav', {duration: 400});
+ myHeight = new fx.Height('nav', {duration: 400});
myHeight.hide();
}
</script>
@@ -66,7 +66,7 @@ Page Caching <p>Code Igniter lets you cache your pages in order to achieve maximum performance.
Although Code Igniter is quite fast, the amount of dynamic information you display in your pages will correlate directly to the
-server resources, memory, and processing cycles utilized, which affect your page load speeds.
+server resources, memory, and processing cycles utilized, which affect your page load speeds.
By caching your pages, since they are saved in their fully rendered state, you can achieve performance that nears that of static web pages.
@@ -94,7 +94,7 @@ most logical to you. Once the tag is in place, your pages will begin being cache <h2>Deleting Caches</h2>
-<p>If you no longer wish to cache a file you can remove the caching tag and it will not longer be refreshed when it expires. Note:
+<p>If you no longer wish to cache a file you can remove the caching tag and it will not longer be refreshed when it expires. Note:
Removing the tag will not delete the cache immediately. It will have to expire normally. If you need to remove it earlier you
will need to manually delete it from your cache folder.</p>
diff --git a/user_guide/general/changelog.html b/user_guide/general/changelog.html index 7b2617917..44412b960 100644 --- a/user_guide/general/changelog.html +++ b/user_guide/general/changelog.html @@ -12,7 +12,7 @@ <script type="text/javascript" src="../nav/moo.fx.js"></script>
<script type="text/javascript">
window.onload = function() {
- myHeight = new fx.Height('nav', {duration: 400});
+ myHeight = new fx.Height('nav', {duration: 400});
myHeight.hide();
}
</script>
@@ -163,7 +163,7 @@ Change Log <li>Fixed a bug in which loading a language file was producing a "file contains no data" message.</li>
<li>Fixed a session bug caused by the XSS Filtering feature inadvertently changing the case of certain words.</li>
<li>Fixed some missing prefixes when using the database prefix feature.</li>
-<li>Fixed a typo in the Calendar class (cal_november).</li>
+<li>Fixed a typo in the Calendar class (cal_november).</li>
<li>Fixed a bug in the <dfn>form_checkbox()</dfn> helper.</li>
<li>Fixed a bug that was allowing the second segment of the URI to be identical to the class name.</li>
<li>Fixed an evaluation bug in the database initialization function.</li>
diff --git a/user_guide/general/controllers.html b/user_guide/general/controllers.html index f83cab89f..fd6a4bdf0 100644 --- a/user_guide/general/controllers.html +++ b/user_guide/general/controllers.html @@ -12,7 +12,7 @@ <script type="text/javascript" src="../nav/moo.fx.js"></script>
<script type="text/javascript">
window.onload = function() {
- myHeight = new fx.Height('nav', {duration: 400});
+ myHeight = new fx.Height('nav', {duration: 400});
myHeight.hide();
}
</script>
@@ -137,14 +137,14 @@ class <var>blog</var> extends Controller {<br /> }<br />
?></code>
-<p>Also, always make sure your controller <dfn>extends</dfn> the parent controller class so that it can inherit all its functions.</p>
+<p>Also, always make sure your controller <dfn>extends</dfn> the parent controller class so that it can inherit all its functions.</p>
<a name="functions"></a>
<h2>Functions</h2>
-<p>In the above example the function name is <dfn>index()</dfn>. The "index" function is always loaded by default if the
+<p>In the above example the function name is <dfn>index()</dfn>. The "index" function is always loaded by default if the
<strong>second segment</strong> of the URI is empty. Another way to show your "Hello World" message would be this:</p>
<code>www.your-site.com/index.php/<var>blog</var>/<samp>index</samp>/</code>
@@ -208,8 +208,8 @@ passed to your function will be the re-routed ones.</p> <a name="default"></a>
<h2>Defining a Default Controller</h2>
-<p>Code Igniter can be told to load a default controller when a URI is not present,
-as will be the case when only your site root URL is requested. To specify a default controller, open
+<p>Code Igniter can be told to load a default controller when a URI is not present,
+as will be the case when only your site root URL is requested. To specify a default controller, open
your <dfn>application/config/routes.php</dfn> file and set this variable:</p>
<code>$route['default_controller'] = '<var>Blog</var>';</code>
@@ -230,8 +230,8 @@ Code Igniter permits you to override this behavior through the use of the <kbd>_ // Some code here...<br />
}</code>
-<p class="important"><strong>Important:</strong> If your controller contains a function named <kbd>_remap()</kbd>, it will <strong>always</strong>
-get called regardless of what your URI contains. It overrides the normal behavior in which the URI determines which function is called,
+<p class="important"><strong>Important:</strong> If your controller contains a function named <kbd>_remap()</kbd>, it will <strong>always</strong>
+get called regardless of what your URI contains. It overrides the normal behavior in which the URI determines which function is called,
allowing you to define your own function routing rules.</p>
<p>The overridden function call (typically the second segment of the URI) will be passed as a parameter the <kbd>_remap()</kbd> function:</p>
@@ -256,11 +256,11 @@ allowing you to define your own function routing rules.</p> <h2>Processing Output</h2>
<p>Code Igniter has an output class that takes care of sending your final rendered data to the web browser automatically. More information on this can be found in the
-<a href="views.html">Views</a> and <a href="../libraries/output.html">Output class</a> pages. In some cases, however, you might want to
-post-process the finalized data in some way and send it to the browser yourself. Code Igniter permits you to
+<a href="views.html">Views</a> and <a href="../libraries/output.html">Output class</a> pages. In some cases, however, you might want to
+post-process the finalized data in some way and send it to the browser yourself. Code Igniter permits you to
add a function named <dfn>_output()</dfn> to your controller that will receive the finalized output data.
-<p><strong>Important:</strong> If your controller contains a function named <kbd>_output()</kbd>, it will <strong>always</strong>
+<p><strong>Important:</strong> If your controller contains a function named <kbd>_output()</kbd>, it will <strong>always</strong>
be called by the output class instead of echoing the finalized data directly. The first parameter of the function will contain the finalized output.</p>
<p>Here is an example:</p>
@@ -364,7 +364,7 @@ Constructors can't return a value, but they can do some default work.</p> <a name="reserved"></a>
<h2>Reserved Function Names</h2>
-<p>Since your controller classes will extend the main application controller you
+<p>Since your controller classes will extend the main application controller you
must be careful not to name your functions identically to the ones used by that class, otherwise your local functions
will override them. The following
is a list of reserved names. Do not name your controller functions any of these:</p>
diff --git a/user_guide/general/core_classes.html b/user_guide/general/core_classes.html index 6d2f3804f..c5d021e63 100644 --- a/user_guide/general/core_classes.html +++ b/user_guide/general/core_classes.html @@ -12,7 +12,7 @@ <script type="text/javascript" src="../nav/moo.fx.js"></script>
<script type="text/javascript">
window.onload = function() {
- myHeight = new fx.Height('nav', {duration: 400});
+ myHeight = new fx.Height('nav', {duration: 400});
myHeight.hide();
}
</script>
@@ -69,7 +69,7 @@ It is possible, however, to swap any of the core system classes with your own ve but the option to replace or extend them does exist for those who would like to significantly alter the Code Igniter core.</strong>
</p>
-<p class="important"><strong>Note:</strong> Messing with a core system class has a lot of implications, so make sure you
+<p class="important"><strong>Note:</strong> Messing with a core system class has a lot of implications, so make sure you
know what you are doing before attempting it.</p>
@@ -118,7 +118,7 @@ Extending a class is nearly identical to replacing a class with a couple excepti <ul>
<li>The class declaration must extend the parent class.</li>
-<li>Your new class name and filename must be prefixed with <kbd>MY_</kbd> (this item is configurable. See below.).</li>
+<li>Your new class name and filename must be prefixed with <kbd>MY_</kbd> (this item is configurable. See below.).</li>
</ul>
<p>For example, to extend the native <kbd>Input</kbd> class you'll create a file named <dfn>application/libraries/</dfn><kbd>MY_Input.php</kbd>, and declare your class with:</p>
diff --git a/user_guide/general/creating_libraries.html b/user_guide/general/creating_libraries.html index d76464120..12f8f9fc9 100644 --- a/user_guide/general/creating_libraries.html +++ b/user_guide/general/creating_libraries.html @@ -12,7 +12,7 @@ <script type="text/javascript" src="../nav/moo.fx.js"></script>
<script type="text/javascript">
window.onload = function() {
- myHeight = new fx.Height('nav', {duration: 400});
+ myHeight = new fx.Height('nav', {duration: 400});
myHeight.hide();
}
</script>
@@ -63,11 +63,11 @@ Creating Libraries <h1>Creating Libraries</h1>
<p>When we use the term "Libraries" we are normally referring to the classes that are located in the <kbd>libraries</kbd>
-directory and described in the Class Reference of this user guide. In this case, however, we will instead describe how you can create
-your own libraries within your <dfn>application/libraries</dfn> directory in order to maintain separation between your local resources
+directory and described in the Class Reference of this user guide. In this case, however, we will instead describe how you can create
+your own libraries within your <dfn>application/libraries</dfn> directory in order to maintain separation between your local resources
and the global framework resources.</p>
-<p>As an added bonus, Code Igniter permits your libraries to <kbd>extend</kbd> native classes if you simply need to add some functionality
+<p>As an added bonus, Code Igniter permits your libraries to <kbd>extend</kbd> native classes if you simply need to add some functionality
to an existing library. Or you can even replace native libraries just by placing identically named versions in your <dfn>application/libraries</dfn> folder.
<p>In summary:</p>
@@ -86,7 +86,7 @@ nor can the main Controller class. All other classes are able to be replaced/ex <h2>Storage</h2>
-<p>Your library classes should be placed within your <dfn>application/libraries</dfn> folder, as this is where Code Igniter will look for them when
+<p>Your library classes should be placed within your <dfn>application/libraries</dfn> folder, as this is where Code Igniter will look for them when
they are initialized.</p>
@@ -120,7 +120,7 @@ class Someclass {<br /> <code>$this->load->library('<kbd>someclass</kbd>');</code>
-<p>Where <em>someclass</em> is the file name, without the ".php" file extension. You can submit the file name capitalized or lower case.
+<p>Where <em>someclass</em> is the file name, without the ".php" file extension. You can submit the file name capitalized or lower case.
Code Igniter doesn't care.</p>
<p>Once loaded you can access your class using the <kbd>lower case</kbd> version:</p>
@@ -132,7 +132,7 @@ Code Igniter doesn't care.</p> <h2>Passing Parameters When Initializing Your Class</h2>
-<p>In the library loading function you can dynamically pass data via the second parameter and it will be passed to your class
+<p>In the library loading function you can dynamically pass data via the second parameter and it will be passed to your class
constructor:</p>
<code>
@@ -178,7 +178,7 @@ This function returns the Code Igniter super object.</p> etc.
</code>
-<p><kbd>$this</kbd>, however, only works directly within your controllers, your models, or your views.
+<p><kbd>$this</kbd>, however, only works directly within your controllers, your models, or your views.
If you would like to use Code Igniter's classes from within your own custom classes you can do so as follows:</p>
@@ -231,7 +231,7 @@ Extending a class is nearly identical to replacing a class with a couple excepti <ul>
<li>The class declaration must extend the parent class.</li>
-<li>Your new class name and filename must be prefixed with <kbd>MY_</kbd> (this item is configurable. See below.).</li>
+<li>Your new class name and filename must be prefixed with <kbd>MY_</kbd> (this item is configurable. See below.).</li>
</ul>
<p>For example, to extend the native <kbd>Email</kbd> class you'll create a file named <dfn>application/libraries/</dfn><kbd>MY_Email.php</kbd>, and declare your class with:</p>
@@ -261,7 +261,7 @@ to load the example above, which extends the Email class, you will use:</p> <code>$this->load->library('<kbd>email</kbd>');</code>
-<p>Once loaded you will use the class variable as you normally would for the class you are extending. In the case of
+<p>Once loaded you will use the class variable as you normally would for the class you are extending. In the case of
the email class all calls will use:
diff --git a/user_guide/general/credits.html b/user_guide/general/credits.html index 770b01189..45554904f 100644 --- a/user_guide/general/credits.html +++ b/user_guide/general/credits.html @@ -12,7 +12,7 @@ <script type="text/javascript" src="../nav/moo.fx.js"></script>
<script type="text/javascript">
window.onload = function() {
- myHeight = new fx.Height('nav', {duration: 400});
+ myHeight = new fx.Height('nav', {duration: 400});
myHeight.hide();
}
</script>
@@ -65,7 +65,7 @@ Credits <p>Code Igniter was developed by <a href="http://www.ellislab.com">Rick Ellis</a>, who in his other life is CEO of
<a href="http://www.pmachine.com">pMachine, Inc.</a> The core framework was written
specifically for this application, while many of the class libraries, helpers, and sub-systems borrow from the code-base of
-<a href="http://www.pmachine.com/ee/">ExpressionEngine</a>, a Content Management System written by Rick Ellis and
+<a href="http://www.pmachine.com/ee/">ExpressionEngine</a>, a Content Management System written by Rick Ellis and
<a href="http://www.reedmaniac.com">Paul Burdick</a>.</p>
<p>A hat tip goes to Ruby on Rails for inspiring us to create a PHP framework, and for
diff --git a/user_guide/general/errors.html b/user_guide/general/errors.html index 16db19e41..70ee10213 100644 --- a/user_guide/general/errors.html +++ b/user_guide/general/errors.html @@ -12,7 +12,7 @@ <script type="text/javascript" src="../nav/moo.fx.js"></script>
<script type="text/javascript">
window.onload = function() {
- myHeight = new fx.Height('nav', {duration: 400});
+ myHeight = new fx.Height('nav', {duration: 400});
myHeight.hide();
}
</script>
@@ -62,15 +62,15 @@ Error Handling <h1>Error Handling</h1>
-<p>Code Igniter lets you build error reporting into your applications using the functions described below.
+<p>Code Igniter lets you build error reporting into your applications using the functions described below.
In addition, it has an error logging class that permits error and debugging messages to be saved as text files.</p>
-<p class="important"><strong>Note:</strong> By default, Code Igniter displays all PHP errors. You might
+<p class="important"><strong>Note:</strong> By default, Code Igniter displays all PHP errors. You might
wish to change this behavior once your development is complete. You'll find the <dfn>error_reporting()</dfn>
function located at the top of your main index.php file. Disabling error reporting will NOT prevent log files
from being written if there are errors.</p>
-<p>Unlike most systems in Code Igniter, the error functions are simple procedural interfaces that are available
+<p>Unlike most systems in Code Igniter, the error functions are simple procedural interfaces that are available
globally throughout the application. This approach permits error messages to get triggered without having to worry
about class/function scoping.</p>
@@ -90,7 +90,7 @@ Note that Code Igniter automatically shows 404 messages if controllers are not f <h2>log_message('<var>level</var>', '<samp>message</samp>')</h2>
-<p>This function lets you write messages to your log files. You must supply one of three "levels"
+<p>This function lets you write messages to your log files. You must supply one of three "levels"
in the first parameter, indicating what type of message it is (debug, error, info), with the message
itself in the second parameter. Example:</p>
@@ -116,8 +116,8 @@ log_message('info', 'The purpose of some variable is to provide some value.');<b </ol>
-<p class="important"><strong>Note:</strong> In order for the log file to actually be written, the
- "logs" folder must be writable. In addition, you must set the "threshold" for logging.
+<p class="important"><strong>Note:</strong> In order for the log file to actually be written, the
+ "logs" folder must be writable. In addition, you must set the "threshold" for logging.
You might, for example, only want error messages to be logged, and not the other two types.
If you set it to zero logging will be disabled.</p>
diff --git a/user_guide/general/helpers.html b/user_guide/general/helpers.html index 089d6d08e..e9283e9a7 100644 --- a/user_guide/general/helpers.html +++ b/user_guide/general/helpers.html @@ -12,7 +12,7 @@ <script type="text/javascript" src="../nav/moo.fx.js"></script>
<script type="text/javascript">
window.onload = function() {
- myHeight = new fx.Height('nav', {duration: 400});
+ myHeight = new fx.Height('nav', {duration: 400});
myHeight.hide();
}
</script>
@@ -71,12 +71,12 @@ that help you create form elements, <dfn>Text Helpers</dfn> perform various text <p>Unlike most other systems in Code Igniter, Helpers are not written in an Object Oriented format. They are simple, procedural functions.
Each helper function performs one specific task, with no dependence on other functions.</p>
-<p>Code Igniter does not load Helper Files by default, so the first step in using
+<p>Code Igniter does not load Helper Files by default, so the first step in using
a Helper is to load it. Once loaded, it becomes globally available in your <a href="../general/controllers.html">controller</a> and <a href="../general/views.html">views</a>.</p>
<p>Helpers are typically stored in your <dfn>system/helpers</dfn> directory. Alternately you can create a folder called <kbd>helpers</kbd> inside
your <kbd>application</kbd> folder and store them there. Code Igniter will look first in your <dfn>system/application/helpers</dfn>
-directory. If the directory does not exist or the specified helper is not located there CI will instead look in your global
+directory. If the directory does not exist or the specified helper is not located there CI will instead look in your global
<dfn>system/helpers</dfn> folder.</p>
diff --git a/user_guide/general/hooks.html b/user_guide/general/hooks.html index 6bfa94ee9..341451aa7 100644 --- a/user_guide/general/hooks.html +++ b/user_guide/general/hooks.html @@ -12,7 +12,7 @@ <script type="text/javascript" src="../nav/moo.fx.js"></script>
<script type="text/javascript">
window.onload = function() {
- myHeight = new fx.Height('nav', {duration: 400});
+ myHeight = new fx.Height('nav', {duration: 400});
myHeight.hide();
}
</script>
@@ -62,10 +62,10 @@ Hooks - Extending the Framework Core <h1>Hooks - Extending the Framework Core</h1>
-<p>Code Igniter's Hooks feature provides a means to tap into and modify the inner workings of the framework without hacking the core files.
-When Code Igniter runs it follows a specific execution process, diagramed in the <a href="../overview/appflow.html">Application Flow</a> page.
-There may be instances, however, where you'd like to cause some action to take place at a particular stage in the execution process.
-For example, you might want to run a script right before your controllers get loaded, or right after, or you might want to trigger one of
+<p>Code Igniter's Hooks feature provides a means to tap into and modify the inner workings of the framework without hacking the core files.
+When Code Igniter runs it follows a specific execution process, diagramed in the <a href="../overview/appflow.html">Application Flow</a> page.
+There may be instances, however, where you'd like to cause some action to take place at a particular stage in the execution process.
+For example, you might want to run a script right before your controllers get loaded, or right after, or you might want to trigger one of
your own scripts in some other location.
</p>
@@ -83,14 +83,14 @@ your own scripts in some other location. <code>
$hook['pre_controller'] = array(<br />
'class' => 'MyClass',<br />
- 'function' => 'Myfunction',<br />
+ 'function' => 'Myfunction',<br />
'filename' => 'Myclass.php',<br />
'filepath' => 'hooks',<br />
'params' => array('beer', 'wine', 'snacks')<br />
);</code>
-<p><strong>Notes:</strong><br />The array index correlates to the name of the particular hook point you want to
-use. In the above example the hook point is <kbd>pre_controller</kbd>. A list of hook points is found below.
+<p><strong>Notes:</strong><br />The array index correlates to the name of the particular hook point you want to
+use. In the above example the hook point is <kbd>pre_controller</kbd>. A list of hook points is found below.
The following items should be defined in your associative hook array:</p>
<ul>
@@ -109,7 +109,7 @@ The following items should be defined in your associative hook array:</p> <code>
$hook['pre_controller']<kbd>[]</kbd> = array(<br />
'class' => 'MyClass',<br />
- 'function' => 'Myfunction',<br />
+ 'function' => 'Myfunction',<br />
'filename' => 'Myclass.php',<br />
'filepath' => 'hooks',<br />
'params' => array('beer', 'wine', 'snacks')<br />
@@ -117,7 +117,7 @@ $hook['pre_controller']<kbd>[]</kbd> = array(<br /> <br />
$hook['pre_controller']<kbd>[]</kbd> = array(<br />
'class' => 'MyOtherClass',<br />
- 'function' => 'MyOtherfunction',<br />
+ 'function' => 'MyOtherfunction',<br />
'filename' => 'Myotherclass.php',<br />
'filepath' => 'hooks',<br />
'params' => array('red', 'yellow', 'blue')<br />
@@ -149,7 +149,7 @@ Called immediately after your controller is instantiated, but prior to any metho Called immediately after your controller is fully executed.</li>
<li><strong>display_override</strong><br />
-Overrides the <dfn>_display()</dfn> function, used to send the finalized page to the web browser at the end of system execution. This permits you to
+Overrides the <dfn>_display()</dfn> function, used to send the finalized page to the web browser at the end of system execution. This permits you to
use your own display methodology. Note that the finalized data will be available by calling <dfn>$this->output->get_output()</dfn></li>
<li><strong>cache_override</strong><br />
diff --git a/user_guide/general/index.html b/user_guide/general/index.html index 9ca01f094..b2e89fafb 100644 --- a/user_guide/general/index.html +++ b/user_guide/general/index.html @@ -12,7 +12,7 @@ <script type="text/javascript" src="../nav/moo.fx.js"></script>
<script type="text/javascript">
window.onload = function() {
- myHeight = new fx.Height('nav', {duration: 400});
+ myHeight = new fx.Height('nav', {duration: 400});
myHeight.hide();
}
</script>
@@ -66,17 +66,17 @@ Getting Started curve while making the process as enjoyable as possible.
</p>
-<p>The first step is to <a href="../installation/index.html">install</a> Code Igniter, then read
+<p>The first step is to <a href="../installation/index.html">install</a> Code Igniter, then read
all the topics in the <strong>Introduction</strong> section of the Table of Contents.</p>
<p>Next, read each of the <strong>General Topics</strong> pages in order.
Each topic builds on the previous one, and includes code examples that you are encouraged to try.</p>
-<p>Once you understand the basics you'll be ready to explore the <strong>Class Reference</strong> and
+<p>Once you understand the basics you'll be ready to explore the <strong>Class Reference</strong> and
<strong>Helper Reference</strong> pages to learn to utilize the native libraries and helper files.</p>
-<p>Feel free to take advantage of our <a href="http://www.codeigniter.com/forums/">Community Forums</a>
-if you have questions or problems, and
+<p>Feel free to take advantage of our <a href="http://www.codeigniter.com/forums/">Community Forums</a>
+if you have questions or problems, and
our <a href="http://www.codeigniter.com/wiki/">Wiki</a> to see code examples posted by other users.</p>
diff --git a/user_guide/general/libraries.html b/user_guide/general/libraries.html index 5a191bb00..de34a7a09 100644 --- a/user_guide/general/libraries.html +++ b/user_guide/general/libraries.html @@ -12,7 +12,7 @@ <script type="text/javascript" src="../nav/moo.fx.js"></script>
<script type="text/javascript">
window.onload = function() {
- myHeight = new fx.Height('nav', {duration: 400});
+ myHeight = new fx.Height('nav', {duration: 400});
myHeight.hide();
}
</script>
@@ -63,7 +63,7 @@ Using Code Igniter Libraries <h1>Using Code Igniter Libraries</h1>
-<p>All of the available libraries are located in your <dfn>system/libraries</dfn> folder.
+<p>All of the available libraries are located in your <dfn>system/libraries</dfn> folder.
In most cases, to use one of these classes involves initializing it within a <a href="controllers.html">controller</a> using the following initialization function:</p>
<code>$this->load->library('<var>class name</var>'); </code>
diff --git a/user_guide/general/models.html b/user_guide/general/models.html index 3f1c1e224..18e575892 100644 --- a/user_guide/general/models.html +++ b/user_guide/general/models.html @@ -12,7 +12,7 @@ <script type="text/javascript" src="../nav/moo.fx.js"></script>
<script type="text/javascript">
window.onload = function() {
- myHeight = new fx.Height('nav', {duration: 400});
+ myHeight = new fx.Height('nav', {duration: 400});
myHeight.hide();
}
</script>
@@ -78,7 +78,7 @@ Models <a name="what"></a>
<h2>What is a Model?</h2>
-<p>Models are PHP classes that are designed to work with information in your database. For example, let's say
+<p>Models are PHP classes that are designed to work with information in your database. For example, let's say
you use Code Igniter to manage a blog. You might have a model class that contains functions to insert, update, and
retrieve your blog data. Here is an example of what such a model class might look like:</p>
@@ -127,7 +127,7 @@ class Blogmodel extends Model {<br /> <a name="anatomy"></a>
<h2>Anatomy of a Model</h2>
-<p>Model classes are stored in your <dfn>application/models/</dfn> folder. They can be nested within sub-folders if you
+<p>Model classes are stored in your <dfn>application/models/</dfn> folder. They can be nested within sub-folders if you
want this type of organization.</p>
<p>The basic prototype for a model class is this:</p>
@@ -142,7 +142,7 @@ class <var>Model_name</var> extends Model {<br /> }<br />
}</code>
-<p>Where <var>Model_name</var> is the name of your class. Class names <strong>must</strong> be capitalized.
+<p>Where <var>Model_name</var> is the name of your class. Class names <strong>must</strong> be capitalized.
Make sure your class extends the base Model class.</p>
<p>The file name will be a lower case version of your class name. For example, if your class is this:</p>
@@ -217,13 +217,13 @@ class Blog_controller extends Controller {<br /> <ul>
<li>You can connect using the standard database methods <a href="../database/connecting.html">described here</a>, either from within your Controller class or your Model class.</li>
<li>You can tell the model loading function to auto-connect by passing <kbd>TRUE</kbd> (boolean) via the third parameter,
-and connectivity settings, as defined in your database config file will be used:
+and connectivity settings, as defined in your database config file will be used:
<code>$this->load->model('<var>Model_name</var>', '', <kbd>TRUE</kbd>);</code>
</li>
-<li>You can manually pass database connectivity settings via the third parameter:
+<li>You can manually pass database connectivity settings via the third parameter:
<code>$config['hostname'] = "localhost";<br />
diff --git a/user_guide/general/multiple_apps.html b/user_guide/general/multiple_apps.html index db4a0cff1..e7e45850e 100644 --- a/user_guide/general/multiple_apps.html +++ b/user_guide/general/multiple_apps.html @@ -12,7 +12,7 @@ <script type="text/javascript" src="../nav/moo.fx.js"></script>
<script type="text/javascript">
window.onload = function() {
- myHeight = new fx.Height('nav', {duration: 400});
+ myHeight = new fx.Height('nav', {duration: 400});
myHeight.hide();
}
</script>
diff --git a/user_guide/general/plugins.html b/user_guide/general/plugins.html index 78b82318d..85190af92 100644 --- a/user_guide/general/plugins.html +++ b/user_guide/general/plugins.html @@ -12,7 +12,7 @@ <script type="text/javascript" src="../nav/moo.fx.js"></script>
<script type="text/javascript">
window.onload = function() {
- myHeight = new fx.Height('nav', {duration: 400});
+ myHeight = new fx.Height('nav', {duration: 400});
myHeight.hide();
}
</script>
@@ -63,13 +63,13 @@ Plugins <h1>Plugins</h1>
-<p>Plugins work almost identically to <a href="helpers.html">Helpers</a>. The main difference is that a plugin usually
+<p>Plugins work almost identically to <a href="helpers.html">Helpers</a>. The main difference is that a plugin usually
provides a single function, whereas a Helper is usually a collection of functions. Helpers are also considered a part of
the core system; plugins are intended to be created and shared by our community.</p>
<p>Plugins should be saved to your <dfn>system/plugins</dfn> directory or you can create a folder called <kbd>plugins</kbd> inside
your <kbd>application</kbd> folder and store them there. Code Igniter will look first in your <dfn>system/application/plugins</dfn>
-directory. If the directory does not exist or the specified plugin is not located there CI will instead look in your global
+directory. If the directory does not exist or the specified plugin is not located there CI will instead look in your global
<dfn>system/plugins</dfn> folder.</p>
@@ -102,7 +102,7 @@ automatically in any function, or you can load a plugin in a specific function t <h2>Auto-loading Plugins</h2>
-<p>If you find that you need a particular plugin globally throughout your application, you can tell Code Igniter to auto-load it
+<p>If you find that you need a particular plugin globally throughout your application, you can tell Code Igniter to auto-load it
during system initialization. This is done by opening the <var>application/config/autoload.php</var> file and adding the plugin to the autoload array.</p>
diff --git a/user_guide/general/profiling.html b/user_guide/general/profiling.html index 880aa0c50..2a933e3fe 100644 --- a/user_guide/general/profiling.html +++ b/user_guide/general/profiling.html @@ -12,7 +12,7 @@ <script type="text/javascript" src="../nav/moo.fx.js"></script>
<script type="text/javascript">
window.onload = function() {
- myHeight = new fx.Height('nav', {duration: 400});
+ myHeight = new fx.Height('nav', {duration: 400});
myHeight.hide();
}
</script>
diff --git a/user_guide/general/quick_reference.html b/user_guide/general/quick_reference.html index b9a293f38..20d3fec9f 100644 --- a/user_guide/general/quick_reference.html +++ b/user_guide/general/quick_reference.html @@ -12,7 +12,7 @@ <script type="text/javascript" src="../nav/moo.fx.js"></script>
<script type="text/javascript">
window.onload = function() {
- myHeight = new fx.Height('nav', {duration: 400});
+ myHeight = new fx.Height('nav', {duration: 400});
myHeight.hide();
}
</script>
diff --git a/user_guide/general/requirements.html b/user_guide/general/requirements.html index bf5470c50..3efb3bba2 100644 --- a/user_guide/general/requirements.html +++ b/user_guide/general/requirements.html @@ -12,7 +12,7 @@ <script type="text/javascript" src="../nav/moo.fx.js"></script>
<script type="text/javascript">
window.onload = function() {
- myHeight = new fx.Height('nav', {duration: 400});
+ myHeight = new fx.Height('nav', {duration: 400});
myHeight.hide();
}
</script>
diff --git a/user_guide/general/routing.html b/user_guide/general/routing.html index 102f34db4..a0bb67138 100644 --- a/user_guide/general/routing.html +++ b/user_guide/general/routing.html @@ -12,7 +12,7 @@ <script type="text/javascript" src="../nav/moo.fx.js"></script>
<script type="text/javascript">
window.onload = function() {
- myHeight = new fx.Height('nav', {duration: 400});
+ myHeight = new fx.Height('nav', {duration: 400});
myHeight.hide();
}
</script>
@@ -62,12 +62,12 @@ URI Routing <h1>URI Routing</h1>
-<p>Typically there is a one-to-one relationship between a URL string and its corresponding controller class/method.
+<p>Typically there is a one-to-one relationship between a URL string and its corresponding controller class/method.
The segments in a URI normally follow this pattern:</p>
<code>www.your-site.com/<dfn>class</dfn>/<samp>function</samp>/<var>id</var>/</code>
-<p>In some instances, however, you may want to remap this relationship so that a different class/function can be called
+<p>In some instances, however, you may want to remap this relationship so that a different class/function can be called
instead of the one corresponding to the URL.</p>
<p>For example, lets say you want your URLs to have this prototype:</p>
@@ -79,7 +79,7 @@ www.your-site.com/product/3/<br /> www.your-site.com/product/4/
</p>
-<p>Normally the second segment of the URL is reserved for the function name, but in the example above it instead has a product ID.
+<p>Normally the second segment of the URL is reserved for the function name, but in the example above it instead has a product ID.
To overcome this, Code Igniter allows you to remap the URI handler.</p>
@@ -95,8 +95,8 @@ permits you to specify your own routing criteria. Routes can either be specified <code>$route['product/:num'] = "catalog/product_lookup";</code>
-<p>In a route, the array key contains the URI to be matched, while the array value contains the destination it should be re-routed to.
-In the above example, if the literal word "product" is found in the first segment of the URL, and a number is found in the second segment,
+<p>In a route, the array key contains the URI to be matched, while the array value contains the destination it should be re-routed to.
+In the above example, if the literal word "product" is found in the first segment of the URL, and a number is found in the second segment,
the "catalog" class and the "product_lookup" method are instead used.</p>
<p>You can match literal values or you can use two wildcard types:</p>
@@ -110,7 +110,7 @@ the "catalog" class and the "product_lookup" method are instead used.</p> <strong>:any</strong> will match a segment containing any character.
</p>
-<p class="important"><strong>Note:</strong> Routes will run in the order they are defined.
+<p class="important"><strong>Note:</strong> Routes will run in the order they are defined.
Higher routes will always take precedence over lower ones.</p>
diff --git a/user_guide/general/scaffolding.html b/user_guide/general/scaffolding.html index b22b351ec..dbe9cb12e 100644 --- a/user_guide/general/scaffolding.html +++ b/user_guide/general/scaffolding.html @@ -12,7 +12,7 @@ <script type="text/javascript" src="../nav/moo.fx.js"></script>
<script type="text/javascript">
window.onload = function() {
- myHeight = new fx.Height('nav', {duration: 400});
+ myHeight = new fx.Height('nav', {duration: 400});
myHeight.hide();
}
</script>
@@ -62,11 +62,11 @@ Scaffolding <h1>Scaffolding</h1>
-<p>Code Igniter's Scaffolding feature provides a fast and very convenient way to add, edit, or delete information in your database
+<p>Code Igniter's Scaffolding feature provides a fast and very convenient way to add, edit, or delete information in your database
during development.</p>
<p class="important"><strong>Very Important:</strong> Scaffolding is intended for development use only. It provides very little
-security other than a "secret" word, so anyone who has access to your Code Igniter site can potentially edit or delete your information.
+security other than a "secret" word, so anyone who has access to your Code Igniter site can potentially edit or delete your information.
If you use scaffolding make sure you disable it immediately after you are through using it. DO NOT leave it enabled on a live site.
And please, set a secret word before you use it.</p>
@@ -75,7 +75,7 @@ And please, set a secret word before you use it.</p> <p>Here's a typical scenario: You create a new database table during development and you'd like a quick way to insert some data
into it to work with. Without scaffolding your choices are either to write some inserts using the command line or to use a
-database management tool like phpMyAdmin. With Code Igniter's scaffolding feature you can quickly add some data using its browser
+database management tool like phpMyAdmin. With Code Igniter's scaffolding feature you can quickly add some data using its browser
interface. And when you are through using the data you can easily delete it.</p>
<h2>Setting a Secret Word</h2>
@@ -95,7 +95,7 @@ will launch the scaffolding interface, so please pick something obscure that no <h2>Enabling Scaffolding</h2>
<p>Note: The information on this page assumes you already know how <a href="controllers.html">controllers</a> work, and that you have
-a working one available. It also assumes you have configured Code Igniter to auto-connect to your <a href="../database/index.html">database</a>.
+a working one available. It also assumes you have configured Code Igniter to auto-connect to your <a href="../database/index.html">database</a>.
If not, the information here won't be very relevant, so you are encouraged to go through those sections first.
Lastly, it assumes you understand what a class constructor is. If not, read the last section of the <a href="controllers.html">controllers</a>
page.</p>
diff --git a/user_guide/general/security.html b/user_guide/general/security.html index c3218cdba..e8f935d5b 100644 --- a/user_guide/general/security.html +++ b/user_guide/general/security.html @@ -12,7 +12,7 @@ <script type="text/javascript" src="../nav/moo.fx.js"></script>
<script type="text/javascript">
window.onload = function() {
- myHeight = new fx.Height('nav', {duration: 400});
+ myHeight = new fx.Height('nav', {duration: 400});
myHeight.hide();
}
</script>
@@ -84,7 +84,7 @@ minimize the possibility that malicious data can be passed to your application. <h2>GET, POST, and COOKIE Data</h2>
<p>GET data is simply disallowed by Code Igniter since the system utilizes URI segments rather than traditional URL query strings (unless
-you have the query string option enabled in your config file). The global GET
+you have the query string option enabled in your config file). The global GET
array is <strong>unset</strong> by the Input class during system initialization.</p>
<h2>Register_globals</h2>
@@ -100,7 +100,7 @@ retrieving data from your database.</p> <h1>Best Practices</h1>
-<p>Before accepting any data into your application, whether it be POST data from a form submission, COOKIE data, URI data,
+<p>Before accepting any data into your application, whether it be POST data from a form submission, COOKIE data, URI data,
XML-RPC data, or even data from the SERVER array, you are encouraged to practice this three step approach:</p>
<ol>
@@ -116,15 +116,15 @@ Code Igniter provides the following functions to assist in this process:</p> <li><h2>XSS Filtering</h2>
-<p>Code Igniter comes with a Cross Site Scripting filter. This filter looks for commonly
+<p>Code Igniter comes with a Cross Site Scripting filter. This filter looks for commonly
used techniques to embed malicious Javascript into your data, or other types of code that attempt to hijack cookies
-or do other malicious things. The XSS Filter is described <a href="../libraries/input.html">here</a>.
+or do other malicious things. The XSS Filter is described <a href="../libraries/input.html">here</a>.
</p>
</li>
<li><h2>Validate the data</h2>
-<p>Code Igniter has a <a href="../libraries/validation.html">Validation Class</a> that assists you in validating, filtering, and prepping
+<p>Code Igniter has a <a href="../libraries/validation.html">Validation Class</a> that assists you in validating, filtering, and prepping
your data.</p>
</li>
diff --git a/user_guide/general/urls.html b/user_guide/general/urls.html index b3b842d46..c90e90f7d 100644 --- a/user_guide/general/urls.html +++ b/user_guide/general/urls.html @@ -12,7 +12,7 @@ <script type="text/javascript" src="../nav/moo.fx.js"></script>
<script type="text/javascript">
window.onload = function() {
- myHeight = new fx.Height('nav', {duration: 400});
+ myHeight = new fx.Height('nav', {duration: 400});
myHeight.hide();
}
</script>
@@ -63,7 +63,7 @@ URLS <h1>Code Igniter URLs</h1>
-<p>By default, URLs in Code Igniter are designed to be search-engine and human friendly. Rather than using the standard "query string"
+<p>By default, URLs in Code Igniter are designed to be search-engine and human friendly. Rather than using the standard "query string"
approach to URLs that is synonymous with dynamic systems, Code Igniter uses a <strong>segment-based</strong> approach:</p>
<code>www.your-site.com/<var>news</var>/<dfn>article</dfn>/<samp>my_article</samp></code>
@@ -82,8 +82,8 @@ approach to URLs that is synonymous with dynamic systems, Code Igniter uses a <s <li>The third, and any additional segments, represent the ID and any variables that will be passed to the controller.</p>
</ol>
-<p>The <a href="../libraries/uri.html">URI Class</a> and the <a href="../helpers/url_helper.html">URL Helper</a>
-contain functions that make it easy to work with your URI data. In addition, your URLs can be remapped using the
+<p>The <a href="../libraries/uri.html">URI Class</a> and the <a href="../helpers/url_helper.html">URL Helper</a>
+contain functions that make it easy to work with your URI data. In addition, your URLs can be remapped using the
<a href="routing.html">URI Routing</a> feature for more flexibility.</p>
@@ -136,7 +136,7 @@ be accessible using the "trigger" words you've set to invoke your controllers an <code>index.php?c=controller&m=method</code>
<p class="important"><strong>Please note:</strong> If you are using query strings you will have to build your own URLs, rather than utilizing
-the URL helpers (and other helpers that generate URLs, like some of the form helpers) as these are designed to work with
+the URL helpers (and other helpers that generate URLs, like some of the form helpers) as these are designed to work with
segment based URLs.</p>
diff --git a/user_guide/general/views.html b/user_guide/general/views.html index d4ccb5148..602d58255 100644 --- a/user_guide/general/views.html +++ b/user_guide/general/views.html @@ -12,7 +12,7 @@ <script type="text/javascript" src="../nav/moo.fx.js"></script>
<script type="text/javascript">
window.onload = function() {
- myHeight = new fx.Height('nav', {duration: 400});
+ myHeight = new fx.Height('nav', {duration: 400});
myHeight.hide();
}
</script>
@@ -63,11 +63,11 @@ Views <h1>Views</h1>
<p>A <dfn>view</dfn> is simply a web page, or a page fragment, like a header, footer, sidebar, etc.
-In fact, views can flexibly be embedded within other views (within other views, etc., etc.) if you need this type
+In fact, views can flexibly be embedded within other views (within other views, etc., etc.) if you need this type
of hierarchy.</p>
<p>Views are never called directly, they must be loaded by a <a href="controllers.html">controller</a>. Remember that in an MVC framework, the Controller acts as the
-traffic cop, so it is responsible for fetching a particular view. If you have not read the <a href="controllers.html">Controllers</a> page
+traffic cop, so it is responsible for fetching a particular view. If you have not read the <a href="controllers.html">Controllers</a> page
you should do so before continuing.</p>
<p>Using the example controller you created in the <a href="controllers.html">controller</a> page, let's add a view to it.</p>
@@ -120,7 +120,7 @@ class Blog extends Controller { <h2>Adding Dynamic Data to the View</h2>
-<p>Data is passed from the controller to the view by way of an <strong>array</strong> or an <strong>object</strong> in the second
+<p>Data is passed from the controller to the view by way of an <strong>array</strong> or an <strong>object</strong> in the second
parameter of the view loading function. Here is an example using an array:</p>
<code>$data = array(<br />
|