123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151 |
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="utf-8" lang="utf-8">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=0" />
- <title>从 1.4.0 升级到 1.4.1 - CodeIgniter 中文手册|用户手册|用户指南|Wiki文档</title>
- <link rel="shortcut icon" href="http://codeigniter.org.cn/user_guide/../images/design/favicon.ico" type="image/x-icon" />
- <link rel="stylesheet" type="text/css" media="all" href="../userguide.css" />
- <link rel="search" href="http://codeigniter.org.cn/user_guide/../CodeIgniterSearch.xml" type="application/opensearchdescription+xml" title="CodeIgniter 搜索"/>
- <link rel="canonical" href="http://codeigniter.org.cn/user_guide/installation/upgrade_141.html" />
- <script type="text/javascript" src="../nav/mootools.js-ver=20130324.js"></script>
- <script type="text/javascript" src="../nav/mootools-more.js-ver=20130324.js"></script>
- <script type="text/javascript" src="../nav/nav.js-ver=20130324.js"></script>
- <script type="text/javascript" src="../nav/user_guide_menu.js-ver=20130324.js"></script>
- <meta name="robots" content="all" />
- <meta name="author" content="ExpressionEngine Dev Team" />
- <meta name="description" content="CodeIgniter 中文手册, CodeIgniter 用户指南, CodeIgniter User Guide, Wiki 文档" />
- </head>
- <body>
- <!-- START NAVIGATION -->
- <div id="nav">
- <div id="nav_inner">
- <script type="text/javascript">create_menu('../');</script>
- </div>
- </div>
- <script type="text/javascript">_setNavigation();</script>
- <div id="nav2"><a name="top"></a><a href="javascript:void(0);" onclick="myHeight.toggle();"><img src="../images/nav_toggle_darker.jpg" width="154" height="43" border="0" title="切换目录" alt="切换目录" /></a></div>
- <div id="masthead" class="clearfix">
- <div class="topbar-hd"><h1>CodeIgniter 用户指南 版本 2.2.0</h1></div>
- <div class="topbar-tip">编辑文档、查看近期更改请 <a href="#">登录</a> 或 <a href="#">注册</a> <a href="#">找回密码</a></div> <div id="breadcrumb_right"><a href="../toc.html">目录页</a></div>
- </div>
- <!-- END NAVIGATION -->
- <!-- START BREADCRUMB -->
- <table cellpadding="0" cellspacing="0" border="0" style="width:100%">
- <tr>
- <td id="breadcrumb">
- <a href="#" target="_blank">CodeIgniter 中国首页</a> ›
- <a href="../index.html">用户指南首页</a> › <a href="index.html">安装</a> › 从 1.4.0 升级到 1.4.1 </td>
- <td id="searchbox">
- <form method="get" action="http://www.google.com.hk/search" target="google_window">
- <input type="hidden" name="client" value="pub-0176846097796333"></input>
- <input type="hidden" name="forid" value="1"></input>
- <input type="hidden" name="ie" value="UTF-8"></input>
- <input type="hidden" name="oe" value="UTF-8"></input>
- <input type="hidden" name="as_sitesearch" id="as_sitesearch" value="codeigniter.org.cn/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>
- </tr>
- </table>
- <!-- END BREADCRUMB -->
- <div style="clear:both;text-align:right;padding: 6px 40px 0 0;">
- <a href="#" target="_blank">查看原文</a>
- </div>
- <!--<br clear="all" />--><!-- START CONTENT -->
- <div id="content">
- <h1>Upgrading from 1.4.0 to 1.4.1</h1>
- <p class="important"><strong>Note:</strong> The instructions on this page assume you are running version 1.4.0. If you
- have not upgraded to that version please do so first.</p>
- <p>Before performing an update you should take your site offline by replacing the index.php file with a static one.</p>
- <h2>Step 1: Update your CodeIgniter files</h2>
- <p>Replace the following directories in your "system" folder with the new versions:</p>
- <p class="important"><strong>Note:</strong> If you have any custom developed files in these folders please make copies of them first.</p>
- <ul>
- <li>codeigniter</li>
- <li>drivers</li>
- <li>helpers</li>
- <li>libraries</li>
- </ul>
- <h2>Step 2: Update your config.php file</h2>
- <p>Open your <dfn>application/config/config.php</dfn> file and add this new item:</p>
- <pre>
- /*
- |--------------------------------------------------------------------------
- | Output Compression
- |--------------------------------------------------------------------------
- |
- | Enables Gzip output compression for faster page loads. When enabled,
- | the output class will test whether your server supports Gzip.
- | Even if it does, however, not all browsers support compression
- | so enable only if you are reasonably sure your visitors can handle it.
- |
- | VERY IMPORTANT: If you are getting a blank page when compression is enabled it
- | means you are prematurely outputting something to your browser. It could
- | even be a line of whitespace at the end of one of your scripts. For
- | compression to work, nothing can be sent before the output buffer is called
- | by the output class. Do not "echo" any values with compression enabled.
- |
- */
- $config['compress_output'] = FALSE;
- </pre>
- <h2>Step 3: Rename an Autoload Item</h2>
- <p>Open the following file: <dfn>application/config/autoload.php</dfn></p>
- <p>Find this array item:</p>
- <code>$autoload['core'] = array();</code>
- <p>And rename it to this:</p>
- <code>$autoload['libraries'] = array();</code>
- <p>This change was made to improve clarity since some users were not sure that their own libraries could be auto-loaded.</p>
- <h2>Step 4: Update your user guide</h2>
- <p>Please also replace your local copy of the user guide with the new version.</p><p> </p>
- <div id="Contributors">
- 翻译贡献者:
- Hex</div>
- <div id="DocDate">
- 最后修改: 2009-02-21 23:18:04</div>
- </div>
- <!-- END CONTENT -->
- <div id="footer">
- <p>
- 上一个主题: <a href="index.html">安装指导</a> · <a href="#top">页首</a>
- · <a href="../index.html">用户指南首页</a> · 下一个主题: <a href="troubleshooting.html">疑难解答</a> </p>
- <p><a href="#">CodeIgniter</a> · 版权所有 © 2006-2013 · <a href="#">Ellislab, Inc.</a></p>
- <p>中文化: <a href="#">CodeIgniter 中国</a> · 制作: Hex · 版本: 1.30 · 鸣谢: 子非鱼</p>
- </div>
- </body>
- </html>
|