admin | 86d4e99 | 2006-10-08 07:21:03 +0000 | [diff] [blame] | 1 | <!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">
|
| 14 | window.onload = function() {
|
admin | e334c47 | 2006-10-21 19:44:22 +0000 | [diff] [blame] | 15 | myHeight = new fx.Height('nav', {duration: 400});
|
admin | 86d4e99 | 2006-10-08 07:21:03 +0000 | [diff] [blame] | 16 | 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>
|
admin | 0518661 | 2006-10-28 03:28:01 +0000 | [diff] [blame] | 36 | <td><h1>Code Igniter User Guide Version 1.5.0</h1></td>
|
admin | c0d5d52 | 2006-10-30 19:40:35 +0000 | [diff] [blame^] | 37 | <td id="breadcrumb_right"><a href="../toc.html">Table of Contents Page</a></td>
|
admin | 86d4e99 | 2006-10-08 07:21:03 +0000 | [diff] [blame] | 38 | </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> ›
|
| 49 | <a href="../index.html">User Guide Home</a> ›
|
| 50 | Upgrading 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 <input type="text" class="input" style="width:200px;" name="q" id="q" size="31" maxlength="255" value="" /> <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 |
|
admin | e334c47 | 2006-10-21 19:44:22 +0000 | [diff] [blame] | 65 | <p class="important"><strong>Note:</strong> The instructions on this page assume you are running version 1.4.1. If you
|
admin | 86d4e99 | 2006-10-08 07:21:03 +0000 | [diff] [blame] | 66 | have 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 |
|
admin | b1fddc0 | 2006-10-09 21:29:07 +0000 | [diff] [blame] | 74 | <p>Replace these files and directories in your "system" folder with the new versions:
|
admin | 86d4e99 | 2006-10-08 07:21:03 +0000 | [diff] [blame] | 75 |
|
| 76 | <ul>
|
| 77 |
|
admin | b1fddc0 | 2006-10-09 21:29:07 +0000 | [diff] [blame] | 78 | <li><dfn>application/config/user_agents.php</dfn> (new file for 1.5)</li>
|
admin | f3a6204 | 2006-10-29 20:24:11 +0000 | [diff] [blame] | 79 | <li><dfn>application/config/smileys.php</dfn> (new file for 1.5)</li>
|
admin | b1fddc0 | 2006-10-09 21:29:07 +0000 | [diff] [blame] | 80 | <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>
|
admin | 86d4e99 | 2006-10-08 07:21:03 +0000 | [diff] [blame] | 86 | </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 |
|
admin | ae3fbab | 2006-10-20 23:20:12 +0000 | [diff] [blame] | 101 |
|
| 102 | <h2>Step 2: Update your config.php file</h2>
|
| 103 |
|
admin | 49439ff | 2006-10-30 04:39:12 +0000 | [diff] [blame] | 104 | <p>Open your <dfn>application/config/config.php</dfn> file and <kbd>ADD</kbd> these new items:</p>
|
admin | ae3fbab | 2006-10-20 23:20:12 +0000 | [diff] [blame] | 105 |
|
| 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:
|
admin | e334c47 | 2006-10-21 19:44:22 +0000 | [diff] [blame] | 114 | |
|
admin | ae3fbab | 2006-10-20 23:20:12 +0000 | [diff] [blame] | 115 | | 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_';
|
admin | 49439ff | 2006-10-30 04:39:12 +0000 | [diff] [blame] | 120 |
|
| 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;
|
admin | ae3fbab | 2006-10-20 23:20:12 +0000 | [diff] [blame] | 132 | </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 | |
|
admin | e334c47 | 2006-10-21 19:44:22 +0000 | [diff] [blame] | 143 | | If you would like errors or debug messages logged set this variable to
|
admin | ae3fbab | 2006-10-20 23:20:12 +0000 | [diff] [blame] | 144 | | 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>
|
admin | 86d4e99 | 2006-10-08 07:21:03 +0000 | [diff] [blame] | 156 |
|
admin | e334c47 | 2006-10-21 19:44:22 +0000 | [diff] [blame] | 157 | <p>If you are running a stock <dfn>index.php</dfn> file simply replace your version with the new one. If you are running one with
|
admin | cef2106 | 2006-10-30 17:13:13 +0000 | [diff] [blame] | 158 | internal modifications, open it and make these two changes:</p>
|
| 159 |
|
| 160 | <p>Find the $application_folder variable and make sure it contains the name of your "application" directory:</p>
|
| 161 |
|
| 162 | <code>$application_folder = "application";</code>
|
| 163 |
|
| 164 | <p>Next, at add this line of code near the bottom of the page:</p>
|
admin | 4003718 | 2006-10-11 19:16:58 +0000 | [diff] [blame] | 165 |
|
| 166 | <code>define('FCPATH', __FILE__);</code>
|
| 167 |
|
admin | ae3fbab | 2006-10-20 23:20:12 +0000 | [diff] [blame] | 168 |
|
| 169 |
|
| 170 |
|
| 171 | <h2>Step 5: Update your user guide</h2>
|
admin | 86d4e99 | 2006-10-08 07:21:03 +0000 | [diff] [blame] | 172 |
|
| 173 | <p>Please also replace your local copy of the user guide with the new version.</p>
|
| 174 |
|
| 175 | </div>
|
| 176 | <!-- END CONTENT -->
|
| 177 |
|
| 178 |
|
| 179 | <div id="footer">
|
| 180 | <p>
|
| 181 | Previous Topic: <a href="index.html">Installation Instructions</a>
|
| 182 | ·
|
| 183 | <a href="#top">Top of Page</a> ·
|
| 184 | <a href="../index.html">User Guide Home</a> ·
|
| 185 | Next Topic: <a href="../overview/at_a_glance.html">Code Igniter at a Glance</a>
|
| 186 | <p>
|
| 187 |
|
| 188 | <p><a href="http://www.codeigniter.com">Code Igniter</a> · Copyright © 2006 · <a href="http://www.pmachine.com">pMachine, Inc.</a></p>
|
| 189 | </div>
|
| 190 |
|
| 191 | </body>
|
| 192 | </html> |