blob: 79bf31d6812cb038db0f77120d80940fb2ffe4a0 [file] [log] [blame]
adminb0dd10f2006-08-25 17:25:49 +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
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>
adminb0dd10f2006-08-25 17:25:49 +000013<script type="text/javascript">
14window.onload = function() {
admine334c472006-10-21 19:44:22 +000015 myHeight = new fx.Height('nav', {duration: 400});
adminb0dd10f2006-08-25 17:25:49 +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>
Rick Ellis257651d2006-11-23 18:40:13 +000036<td><h1>Code Igniter User Guide Version 1.5.1</h1></td>
adminc0d5d522006-10-30 19:40:35 +000037<td id="breadcrumb_right"><a href="../toc.html">Table of Contents Page</a></td>
adminb0dd10f2006-08-25 17:25:49 +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 Beta 1.0 to Beta 1.1
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 Beta 1.0 to Beta 1.1</h1>
64
65<p>To upgrade to Beta 1.1 please perform the following steps:</p>
66
67<h2>Step 1: Replace your index file</h2>
68
69<p>Replace your main <kbd>index.php</kbd> file with the new index.php file. Note: If you have renamed your "system" folder you will need to edit this info in the new file.</p>
70
71<h2>Step 2: Relocate your config folder</h2>
72
73<p>This version of Code Igniter now permits multiple sets of "applications" to all share a common set of backend files. In order to enable
admine334c472006-10-21 19:44:22 +000074each application to have its own configuration values, the <kbd>config</kbd> directory must now reside
adminb0dd10f2006-08-25 17:25:49 +000075inside of your <dfn>application</dfn> folder, so please move it there.</p>
76
77
78<h2>Step 3: Replace directories</h2>
79
80<p>Replace the following directories with the new versions:</p>
81
82<ul>
83<li>drivers</li>
84<li>helpers</li>
85<li>init</li>
86<li>libraries</li>
87<li>scaffolding</li>
88</ul>
89
90
91<h2>Step 4: Add the calendar language file</h2>
92
93<p>There is a new language file corresponding to the new calendaring class which must be added to your language folder. Add
94the following item to your version: <dfn>language/english/calendar_lang.php</dfn></p>
95
96
97<h2>Step 5: Edit your config file</h2>
98
99<p>The original <kbd>application/config/config.php</kbd> file has a typo in it Open the file and look for the items related to cookies:</p>
100
101<code>$conf['cookie_prefix'] = "";<br />
102$conf['cookie_domain'] = "";<br />
103$conf['cookie_path'] = "/";</code>
104
105<p>Change the array name from <kbd>$conf</kbd> to <kbd>$config</kbd>, like this:</p>
106
107<code>$config['cookie_prefix'] = "";<br />
108$config['cookie_domain'] = "";<br />
109$config['cookie_path'] = "/";</code>
110
111<p>Lastly, add the following new item to the config file (and edit the option if needed):</p>
112
113<code><br />
114/*<br />
115|------------------------------------------------<br />
116| URI PROTOCOL<br />
117|------------------------------------------------<br />
118|<br />
119| This item determines which server global <br />
120| should be used to retrieve the URI string. The <br />
121| default setting of "auto" works for most servers.<br />
122| If your links do not seem to work, try one of <br />
123| the other delicious flavors:<br />
124| <br />
125| 'auto' Default - auto detects<br />
126| 'path_info' Uses the PATH_INFO <br />
127| 'query_string' Uses the QUERY_STRING<br />
128*/<br />
129<br />
130$config['uri_protocol'] = "auto";</code>
131
132
133</div>
134<!-- END CONTENT -->
135
136
137<div id="footer">
138<p>
139Previous Topic:&nbsp;&nbsp;<a href="index.html">Installation Instructions</a>
140&nbsp;&nbsp;&nbsp;&middot;&nbsp;&nbsp;
141<a href="#top">Top of Page</a>&nbsp;&nbsp;&nbsp;&middot;&nbsp;&nbsp;
142<a href="../index.html">User Guide Home</a>&nbsp;&nbsp;&nbsp;&middot;&nbsp;&nbsp;
143Next Topic:&nbsp;&nbsp;<a href="../overview/at_a_glance.html">Code Igniter at a Glance</a>
144<p>
145
146<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>
147</div>
148
149</body>
150</html>