blob: 29103e4afa0abc220eddc71cad8ce27b8f96e06f [file] [log] [blame]
admin0f3ce632006-09-22 00:11:50 +00001<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2<html>
3<head>
4
Derek Allardd2df9bc2007-04-15 17:41:17 +00005<title>CodeIgniter User Guide</title>
admin0f3ce632006-09-22 00:11:50 +00006
7<style type='text/css' media='all'>@import url('../userguide.css');</style>
8<link rel='stylesheet' type='text/css' media='all' href='../userguide.css' />
9
admin17a890d2006-09-27 20:42:42 +000010<script type="text/javascript" src="../nav/nav.js"></script>
admin2296fc32006-09-27 21:07:02 +000011<script type="text/javascript" src="../nav/prototype.lite.js"></script>
admin17a890d2006-09-27 20:42:42 +000012<script type="text/javascript" src="../nav/moo.fx.js"></script>
admin0f3ce632006-09-22 00:11:50 +000013<script type="text/javascript">
14window.onload = function() {
admine334c472006-10-21 19:44:22 +000015 myHeight = new fx.Height('nav', {duration: 400});
admin0f3ce632006-09-22 00:11:50 +000016 myHeight.hide();
17}
18</script>
19
20<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
21<meta http-equiv='expires' content='-1' />
22<meta http-equiv= 'pragma' content='no-cache' />
23<meta name='robots' content='all' />
24<meta name='author' content='Rick Ellis' />
Derek Allardd2df9bc2007-04-15 17:41:17 +000025<meta name='description' content='CodeIgniter User Guide' />
admin0f3ce632006-09-22 00:11:50 +000026
27</head>
28<body>
29
30<!-- START NAVIGATION -->
31<div id="nav"><div id="nav_inner"><script type="text/javascript">create_menu('../');</script></div></div>
32<div id="nav2"><a name="top"></a><a href="javascript:void(0);" onclick="myHeight.toggle();"><img src="../images/nav_toggle.jpg" width="153" height="44" border="0" title="Toggle Table of Contents" alt="Toggle Table of Contents" /></a></div>
33<div id="masthead">
34<table cellpadding="0" cellspacing="0" border="0" style="width:100%">
35<tr>
Derek Allard60ca9b72007-07-12 19:53:27 +000036<td><h1>CodeIgniter User Guide Version 1.5.4</h1></td>
adminc0d5d522006-10-30 19:40:35 +000037<td id="breadcrumb_right"><a href="../toc.html">Table of Contents Page</a></td>
admin0f3ce632006-09-22 00:11:50 +000038</tr>
39</table>
40</div>
41<!-- END NAVIGATION -->
42
43
44<!-- START BREADCRUMB -->
45<table cellpadding="0" cellspacing="0" border="0" style="width:100%">
46<tr>
47<td id="breadcrumb">
Derek Allardd2df9bc2007-04-15 17:41:17 +000048<a href="http://www.codeigniter.com/">CodeIgniter Home</a> &nbsp;&#8250;&nbsp;
admin0f3ce632006-09-22 00:11:50 +000049<a href="../index.html">User Guide Home</a> &nbsp;&#8250;&nbsp;
Derek Allard9a6e40f2007-07-14 13:46:59 +000050Upgrading from 1.4.0 to 1.4.1 </td>
Derek Allardbc030912007-06-24 18:25:29 +000051<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>
admin0f3ce632006-09-22 00:11:50 +000052</tr>
53</table>
54<!-- END BREADCRUMB -->
55
56<br clear="all" />
57
58
59<!-- START CONTENT -->
60<div id="content">
61
62<h1>Upgrading from 1.4.0 to 1.4.1</h1>
63
admine334c472006-10-21 19:44:22 +000064<p class="important"><strong>Note:</strong> The instructions on this page assume you are running version 1.4.0. If you
admin0f3ce632006-09-22 00:11:50 +000065have not upgraded to that version please do so first.</p>
66
67<p>Before performing an update you should take your site offline by replacing the index.php file with a static one.</p>
68
69
70
Derek Allardd2df9bc2007-04-15 17:41:17 +000071<h2>Step 1: Update your CodeIgniter files</h2>
admin0f3ce632006-09-22 00:11:50 +000072
73<p>Replace the following directories in your "system" folder with the new versions:</p>
74
75<p class="important"><strong>Note:</strong> If you have any custom developed files in these folders please make copies of them first.</p>
76
77<ul>
78<li>codeigniter</li>
79<li>drivers</li>
80<li>helpers</li>
81<li>libraries</li>
82</ul>
83
84
85<h2>Step 2: Update your config.php file</h2>
86
87<p>Open your <dfn>application/config/config.php</dfn> file and add this new item:</p>
88
89<pre>
90
91/*
92|--------------------------------------------------------------------------
93| Output Compression
94|--------------------------------------------------------------------------
95|
96| Enables Gzip output compression for faster page loads. When enabled,
admine334c472006-10-21 19:44:22 +000097| the output class will test whether your server supports Gzip.
admin0f3ce632006-09-22 00:11:50 +000098| Even if it does, however, not all browsers support compression
99| so enable only if you are reasonably sure your visitors can handle it.
100|
101| VERY IMPORTANT: If you are getting a blank page when compression is enabled it
102| means you are prematurely outputting something to your browser. It could
admine334c472006-10-21 19:44:22 +0000103| even be a line of whitespace at the end of one of your scripts. For
admin0f3ce632006-09-22 00:11:50 +0000104| compression to work, nothing can be sent before the output buffer is called
105| by the output class. Do not "echo" any values with compression enabled.
106|
107*/
108$config['compress_output'] = FALSE;
109
110</pre>
111
112
113
114<h2>Step 3: Rename an Autoload Item</h2>
115
116<p>Open the following file: <dfn>application/config/autoload.php</dfn></p>
117
118<p>Find this array item:</p>
119
120<code>$autoload['core'] = array();</code>
121
122<p>And rename it to this:</p>
123
124<code>$autoload['libraries'] = array();</code>
125
126<p>This change was made to improve clarity since some users were not sure that their own libraries could be auto-loaded.</p>
127
128
129
130
131
132
133<h2>Step 4: Update your user guide</h2>
134
135<p>Please also replace your local copy of the user guide with the new version.</p>
136
137</div>
138<!-- END CONTENT -->
139
140
141<div id="footer">
142<p>
143Previous Topic:&nbsp;&nbsp;<a href="index.html">Installation Instructions</a>
144&nbsp;&nbsp;&nbsp;&middot;&nbsp;&nbsp;
145<a href="#top">Top of Page</a>&nbsp;&nbsp;&nbsp;&middot;&nbsp;&nbsp;
146<a href="../index.html">User Guide Home</a>&nbsp;&nbsp;&nbsp;&middot;&nbsp;&nbsp;
Derek Allardd2df9bc2007-04-15 17:41:17 +0000147Next Topic:&nbsp;&nbsp;<a href="../overview/at_a_glance.html">CodeIgniter at a Glance</a>
Derek Allardc6441282007-07-04 23:54:32 +0000148</p>
Derek Allardd2df9bc2007-04-15 17:41:17 +0000149<p><a href="http://www.codeigniter.com">CodeIgniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2007 &nbsp;&middot;&nbsp; <a href="http://ellislab.com/">Ellislab, Inc.</a></p>
admin0f3ce632006-09-22 00:11:50 +0000150</div>
151
152</body>
153</html>