blob: 2114dfd04eee63a22d7a2eb31c64226b440ed913 [file] [log] [blame]
admin86d4e992006-10-08 07:21:03 +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
5<title>Code Igniter User Guide</title>
6
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
10<script type="text/javascript" src="../nav/nav.js"></script>
11<script type="text/javascript" src="../nav/prototype.lite.js"></script>
12<script type="text/javascript" src="../nav/moo.fx.js"></script>
13<script type="text/javascript">
14window.onload = function() {
admine334c472006-10-21 19:44:22 +000015 myHeight = new fx.Height('nav', {duration: 400});
admin86d4e992006-10-08 07:21:03 +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' />
25<meta name='description' content='Code Igniter User Guide' />
26
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 Allardf743c732007-02-14 01:36:46 +000036<td><h1>Code Igniter User Guide Version 1.5.2</h1></td>
adminc0d5d522006-10-30 19:40:35 +000037<td id="breadcrumb_right"><a href="../toc.html">Table of Contents Page</a></td>
admin86d4e992006-10-08 07:21:03 +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">
48<a href="http://www.codeigniter.com/">Code Igniter Home</a> &nbsp;&#8250;&nbsp;
49<a href="../index.html">User Guide Home</a> &nbsp;&#8250;&nbsp;
50Upgrading from 1.4.1 to 1.5.0
51</td>
52<td id="searchbox"><form method="get" action="http://www.google.com/search"><input type="hidden" name="as_sitesearch" id="as_sitesearch" value="www.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>
53</tr>
54</table>
55<!-- END BREADCRUMB -->
56
57<br clear="all" />
58
59
60<!-- START CONTENT -->
61<div id="content">
62
63<h1>Upgrading from 1.4.1 to 1.5.0</h1>
64
admine334c472006-10-21 19:44:22 +000065<p class="important"><strong>Note:</strong> The instructions on this page assume you are running version 1.4.1. If you
admin86d4e992006-10-08 07:21:03 +000066have not upgraded to that version please do so first.</p>
67
68<p>Before performing an update you should take your site offline by replacing the index.php file with a static one.</p>
69
70
71
72<h2>Step 1: Update your Code Igniter files</h2>
73
adminb1fddc02006-10-09 21:29:07 +000074<p>Replace these files and directories in your "system" folder with the new versions:
admin86d4e992006-10-08 07:21:03 +000075
76<ul>
77
adminb1fddc02006-10-09 21:29:07 +000078<li><dfn>application/config/user_agents.php</dfn> (new file for 1.5)</li>
adminf3a62042006-10-29 20:24:11 +000079<li><dfn>application/config/smileys.php</dfn> (new file for 1.5)</li>
adminb1fddc02006-10-09 21:29:07 +000080<li><dfn>codeigniter/</dfn></li>
81<li><dfn>database/</dfn> (new folder for 1.5. Replaces the "drivers" folder)</li>
82<li><dfn>helpers/</dfn></li>
83<li><dfn>language/</dfn></li>
84<li><dfn>libraries/</dfn></li>
85<li><dfn>scaffolding/</dfn></li>
admin86d4e992006-10-08 07:21:03 +000086</ul>
87
88<p class="important"><strong>Note:</strong> If you have any custom developed files in these folders please make copies of them first.</p>
89
90
91<h2>Step 2: Update your database.php file</h2>
92
93<p>Open your <dfn>application/config/database.php</dfn> file and add these new items:</p>
94
95<pre>
96$db['default']['cache_on'] = FALSE;
97$db['default']['cachedir'] = '';
98</pre>
99
100
adminae3fbab2006-10-20 23:20:12 +0000101
Derek Allardf743c732007-02-14 01:36:46 +0000102<h2>Step 3: Update your config.php file</h2>
adminae3fbab2006-10-20 23:20:12 +0000103
admin49439ff2006-10-30 04:39:12 +0000104<p>Open your <dfn>application/config/config.php</dfn> file and <kbd>ADD</kbd> these new items:</p>
adminae3fbab2006-10-20 23:20:12 +0000105
106<pre>
107/*
108|--------------------------------------------------------------------------
109| Class Extension Prefix
110|--------------------------------------------------------------------------
111|
112| This item allows you to set the filename/classname prefix when extending
113| native libraries. For more information please see the user guide:
admine334c472006-10-21 19:44:22 +0000114|
adminae3fbab2006-10-20 23:20:12 +0000115| http://www.codeigniter.com/user_guide/general/core_classes.html
116| http://www.codeigniter.com/user_guide/general/creating_libraries.html
117|
118*/
119$config['subclass_prefix'] = 'MY_';
admin49439ff2006-10-30 04:39:12 +0000120
121/*
122|--------------------------------------------------------------------------
123| Rewrite PHP Short Tags
124|--------------------------------------------------------------------------
125|
126| If your PHP installation does not have short tag support enabled CI
127| can rewrite the tags on-the-fly, enabling you to utilize that syntax
128| in your view files. Options are TRUE or FALSE (boolean)
129|
130*/
131$config['rewrite_short_tags'] = FALSE;
adminae3fbab2006-10-20 23:20:12 +0000132</pre>
133
134<p>In that same file <kbd>REMOVE</kbd> this item:</p>
135
136
137<pre>
138/*
139|--------------------------------------------------------------------------
140| Enable/Disable Error Logging
141|--------------------------------------------------------------------------
142|
admine334c472006-10-21 19:44:22 +0000143| If you would like errors or debug messages logged set this variable to
adminae3fbab2006-10-20 23:20:12 +0000144| TRUE (boolean). Note: You must set the file permissions on the "logs" folder
145| such that it is writable.
146|
147*/
148$config['log_errors'] = FALSE;
149</pre>
150
151<p>Error logging is now disabled simply by setting the threshold to zero.</p>
152
153
154
155<h2>Step 4: Update your main index.php file</h2>
admin86d4e992006-10-08 07:21:03 +0000156
admin47cf6992006-10-30 20:24:06 +0000157<p>If you are running a stock <dfn>index.php</dfn> file simply replace your version with the new one.</p>
admincef21062006-10-30 17:13:13 +0000158
admin47cf6992006-10-30 20:24:06 +0000159<p>If your <dfn>index.php</dfn> file has internal modifications, please add your modifications to the new file and use it.</p>
adminae3fbab2006-10-20 23:20:12 +0000160
161
162
163<h2>Step 5: Update your user guide</h2>
admin86d4e992006-10-08 07:21:03 +0000164
165<p>Please also replace your local copy of the user guide with the new version.</p>
166
167</div>
168<!-- END CONTENT -->
169
170
171<div id="footer">
172<p>
173Previous Topic:&nbsp;&nbsp;<a href="index.html">Installation Instructions</a>
174&nbsp;&nbsp;&nbsp;&middot;&nbsp;&nbsp;
175<a href="#top">Top of Page</a>&nbsp;&nbsp;&nbsp;&middot;&nbsp;&nbsp;
176<a href="../index.html">User Guide Home</a>&nbsp;&nbsp;&nbsp;&middot;&nbsp;&nbsp;
177Next Topic:&nbsp;&nbsp;<a href="../overview/at_a_glance.html">Code Igniter at a Glance</a>
178<p>
179
180<p><a href="http://www.codeigniter.com">Code Igniter</a> &nbsp;&middot;&nbsp; Copyright &#169; 2006 &nbsp;&middot;&nbsp; <a href="http://www.pmachine.com">pMachine, Inc.</a></p>
181</div>
182
183</body>
184</html>