Skip to content

Commit e3e1725

Browse files
committed
Merge pull request #3 from CodeIgniter-TW/develop
Update from base
2 parents 9fbd45a + 25a16cb commit e3e1725

File tree

4 files changed

+231
-274
lines changed

4 files changed

+231
-274
lines changed

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@
4343
* [ ] Unit Testing Class
4444
* [ ] URI Class
4545
* [ ] User Agent Class
46-
* [ ] XML-RPC and XML-RPC Server Classes
47-
* [ ] Zip Encoding Class
46+
* [x] <del>XML-RPC and XML-RPC Server Classes</del>
47+
* [x] <del>Zip Encoding Class</del>
4848

4949
資料庫
5050

@@ -61,7 +61,7 @@
6161
補助函式
6262

6363
* [x] <del>Array Helper</del>
64-
* [ ] CAPTCHA Helper
64+
* [x] <del>CAPTCHA Helper</del>
6565
* [ ] Cookie Helper
6666
* [ ] Date Helper
6767
* [ ] Directory Helper
@@ -86,4 +86,3 @@
8686

8787
* [ ] Writing CodeIgniter Documentation
8888
* [ ] Developer’s Certificate of Origin 1.1
89-

source/general/styleguide.rst

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ PHP 風格指南
1111
檔案格式
1212
===========
1313

14-
檔案應該以 unicode (UTF-8) 編碼儲存。*不應該*使用 BOM。
14+
檔案應該以 unicode (UTF-8) 編碼儲存。*不應該* 使用 BOM。
1515
UTF-8 並不像 UTF-16 及 UTF-32, UTF-8 編碼的檔案不需要標示位元組順序(Byte Order),
1616
而且 BOM 在 PHP 送出結果時會造成一些不好的副作用,使程式無法設置標頭(headers)。
1717
應該使用 Unix 風格的換行字元(LF)。
@@ -47,7 +47,7 @@ PHP 結束標籤
4747
雖然 PHP 的結束標籤 **?>** 是選擇性的。但如果用到結束標籤的話,
4848
任何在結束標籤之後的空白字元,不論是由開發者、使用者、或 FTP 軟體造成的,
4949
都可能造成非預期的輸出,產生 PHP 錯誤,或是當錯誤被忽略時造成空白頁面。
50-
因此,所有的 PHP 檔案應該要**省略**結束標籤,並改用一段註解來標示檔案的結尾,
50+
因此,所有的 PHP 檔案應該要 **省略** 結束標籤,並改用一段註解來標示檔案的結尾,
5151
以及檔案相對於程式根目錄的位置。這樣做讓你依然能夠檢查檔案是否完整,確認內容是否被截斷。
5252

5353
**錯誤的**::
@@ -317,8 +317,7 @@ TRUE, FALSE, 以及 NULL
317317
}
318318

319319

320-
可以參考`typecasting
321-
<http://php.net/manual/en/language.types.type-juggling.php#language.types.typecasting>`_,
320+
可以參考 `typecasting <http://php.net/manual/en/language.types.type-juggling.php#language.types.typecasting>`_,
322321
來獲得更多資訊。
323322
型別轉換有許多用途,例如當轉換一個變數為字串時,NULL 以及布林 FALSE 會變成空字串,0(以及其它數字)會變成數字字串,
324323
還有布林 TRUE 會變成 "1"::
@@ -349,7 +348,7 @@ CodeIgniter 的最低需求是 PHP 5.2.4。你的程式碼也必須相容這個
349348
一個檔案一個類別
350349
==================
351350

352-
將每個類別放在各自的檔案中,除非這些類別是*極度相關的*。
351+
將每個類別放在各自的檔案中,除非這些類別是 *極度相關的*
353352
CodeIgniter 裡一個檔案含有多個類別的例子是 Xmlrpc 函式庫檔案。
354353

355354
縮排的空白

0 commit comments

Comments
 (0)