upgrade_b11.html 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="utf-8" lang="utf-8">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=0" />
  6. <title>从 Beta 1.0 升级到 Beta 1.1 - CodeIgniter 中文手册|用户手册|用户指南|Wiki文档</title>
  7. <link rel="shortcut icon" href="http://codeigniter.org.cn/user_guide/../images/design/favicon.ico" type="image/x-icon" />
  8. <link rel="stylesheet" type="text/css" media="all" href="../userguide.css" />
  9. <link rel="search" href="http://codeigniter.org.cn/user_guide/../CodeIgniterSearch.xml" type="application/opensearchdescription+xml" title="CodeIgniter 搜索"/>
  10. <link rel="canonical" href="http://codeigniter.org.cn/user_guide/installation/upgrade_b11.html" />
  11. <script type="text/javascript" src="../nav/mootools.js-ver=20130324.js"></script>
  12. <script type="text/javascript" src="../nav/mootools-more.js-ver=20130324.js"></script>
  13. <script type="text/javascript" src="../nav/nav.js-ver=20130324.js"></script>
  14. <script type="text/javascript" src="../nav/user_guide_menu.js-ver=20130324.js"></script>
  15. <meta name="robots" content="all" />
  16. <meta name="author" content="ExpressionEngine Dev Team" />
  17. <meta name="description" content="CodeIgniter 中文手册, CodeIgniter 用户指南, CodeIgniter User Guide, Wiki 文档" />
  18. </head>
  19. <body>
  20. <!-- START NAVIGATION -->
  21. <div id="nav">
  22. <div id="nav_inner">
  23. <script type="text/javascript">create_menu('../');</script>
  24. </div>
  25. </div>
  26. <script type="text/javascript">_setNavigation();</script>
  27. <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>
  28. <div id="masthead" class="clearfix">
  29. <div class="topbar-hd"><h1>CodeIgniter 用户指南 版本 2.2.0</h1></div>
  30. <div class="topbar-tip">编辑文档、查看近期更改请 <a href="#">登录</a> 或 <a href="#">注册</a>  <a href="#">找回密码</a></div> <div id="breadcrumb_right"><a href="../toc.html">目录页</a></div>
  31. </div>
  32. <!-- END NAVIGATION -->
  33. <!-- START BREADCRUMB -->
  34. <table cellpadding="0" cellspacing="0" border="0" style="width:100%">
  35. <tr>
  36. <td id="breadcrumb">
  37. <a href="#" target="_blank">CodeIgniter 中国首页</a>&nbsp;&#8250;&nbsp;
  38. <a href="../index.html">用户指南首页</a>&nbsp;&#8250;&nbsp;<a href="index.html">安装</a>&nbsp;&#8250;&nbsp;从 Beta 1.0 升级到 Beta 1.1 </td>
  39. <td id="searchbox">
  40. <form method="get" action="http://www.google.com.hk/search" target="google_window">
  41. <input type="hidden" name="client" value="pub-0176846097796333"></input>
  42. <input type="hidden" name="forid" value="1"></input>
  43. <input type="hidden" name="ie" value="UTF-8"></input>
  44. <input type="hidden" name="oe" value="UTF-8"></input>
  45. <input type="hidden" name="as_sitesearch" id="as_sitesearch" value="codeigniter.org.cn/user_guide/" />
  46. 搜索用户指南&nbsp;
  47. <input type="text" class="input" style="width:200px;" name="q" id="q" size="31" maxlength="255" value="" />
  48. &nbsp;
  49. <input type="submit" class="submit" name="sa" value="Go" />
  50. </form>
  51. </td>
  52. </tr>
  53. </table>
  54. <!-- END BREADCRUMB -->
  55. <div style="clear:both;text-align:right;padding: 6px 40px 0 0;">
  56. <a href="#" target="_blank">查看原文</a>
  57. </div>
  58. <!--<br clear="all" />--><!-- START CONTENT -->
  59. <div id="content">
  60. <h1>Upgrading From Beta 1.0 to Beta 1.1</h1>
  61. <p>To upgrade to Beta 1.1 please perform the following steps:</p>
  62. <h2>Step 1: Replace your index file</h2>
  63. <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>
  64. <h2>Step 2: Relocate your config folder</h2>
  65. <p>This version of CodeIgniter now permits multiple sets of "applications" to all share a common set of backend files. In order to enable
  66. each application to have its own configuration values, the <kbd>config</kbd> directory must now reside
  67. inside of your <dfn>application</dfn> folder, so please move it there.</p>
  68. <h2>Step 3: Replace directories</h2>
  69. <p>Replace the following directories with the new versions:</p>
  70. <ul>
  71. <li>drivers</li>
  72. <li>helpers</li>
  73. <li>init</li>
  74. <li>libraries</li>
  75. <li>scaffolding</li>
  76. </ul>
  77. <h2>Step 4: Add the calendar language file</h2>
  78. <p>There is a new language file corresponding to the new calendaring class which must be added to your language folder. Add
  79. the following item to your version: <dfn>language/english/calendar_lang.php</dfn></p>
  80. <h2>Step 5: Edit your config file</h2>
  81. <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>
  82. <code>$conf['cookie_prefix'] = "";<br />
  83. $conf['cookie_domain'] = "";<br />
  84. $conf['cookie_path'] = "/";</code>
  85. <p>Change the array name from <kbd>$conf</kbd> to <kbd>$config</kbd>, like this:</p>
  86. <code>$config['cookie_prefix'] = "";<br />
  87. $config['cookie_domain'] = "";<br />
  88. $config['cookie_path'] = "/";</code>
  89. <p>Lastly, add the following new item to the config file &#40;and edit the option if needed&#41;:</p>
  90. <code><br />
  91. /*<br />
  92. |------------------------------------------------<br />
  93. | URI PROTOCOL<br />
  94. |------------------------------------------------<br />
  95. |<br />
  96. | This item determines which server global <br />
  97. | should be used to retrieve the URI string. The <br />
  98. | default setting of "auto" works for most servers.<br />
  99. | If your links do not seem to work, try one of <br />
  100. | the other delicious flavors:<br />
  101. | <br />
  102. | 'auto' Default - auto detects<br />
  103. | 'path_info' Uses the PATH_INFO <br />
  104. | 'query_string' Uses the QUERY_STRING<br />
  105. */<br />
  106. <br />
  107. $config['uri_protocol'] = "auto";</code><p>&nbsp;</p>
  108. <div id="Contributors">
  109. 翻译贡献者:
  110. Hex</div>
  111. <div id="DocDate">
  112. 最后修改: 2009-02-21 23:24:50</div>
  113. </div>
  114. <!-- END CONTENT -->
  115. <div id="footer">
  116. <p>
  117. 上一个主题:&nbsp;&nbsp;<a href="index.html">安装指导</a>&nbsp;&nbsp;&middot;&nbsp;&nbsp;<a href="#top">页首</a>
  118. &nbsp;&middot;&nbsp;&nbsp;<a href="../index.html">用户指南首页</a>&nbsp;&nbsp;&middot;&nbsp;&nbsp;下一个主题:&nbsp;&nbsp;<a href="troubleshooting.html">疑难解答</a> </p>
  119. <p><a href="#">CodeIgniter</a> &nbsp;&middot;&nbsp; 版权所有 &#169; 2006-2013 &nbsp;&middot;&nbsp; <a href="#">Ellislab, Inc.</a></p>
  120. <p>中文化: <a href="#">CodeIgniter 中国</a> &nbsp;&middot;&nbsp; 制作: Hex &nbsp;&middot;&nbsp; 版本: 1.30 &nbsp;&middot;&nbsp; 鸣谢: 子非鱼</p>
  121. </div>
  122. </body>
  123. </html>