
CodeIgniter 在官網正式公告了一篇 2.0 目前的狀況及改善 CodeIgniter 2.0 - Now with more Awesome,該篇重點莫過於 CI 2.0 將不再支援 PHP 4.0 版本了,這是一項重大改變,官方給目前版本取了一個名稱:CodeIgniterNoPhp4,看到這名字大概就可以知道官方要捨棄 PHP4 了。 自從 CodeIgniter 將所有程式碼搬到 Bitbucket 上面時,就已經宣稱不再 support PHP4,運行了好幾個月,現在以 PHP 5.1.6 來當作開發重點,底下是官方說明 CI 2.0 該注意的地方(其實還有很多地方要注意): 1. 所有類別將以 CI_ 當作前置符號 2. 因為不支援 PHP4 了,所以建構子一律改成 __construct 3. CI_Base 已經被移除,取而代之的是 CI_Controller 4. 之前有提供 Compatibility 輔助函數,目前已經支援 PHP5 了,故將此移除 開始支援 Email and Validation chaining,看一下範例:
$this->email->from('your@example.com', 'Your Name')
            ->to('someone@example.com')
            ->cc('another@another-example.com')
            ->bcc('them@their-example.com')
            ->subject('Email Test')
            ->message('Testing the email class.')
            ->send(); 最後官方作者有提到一些事情:ExpressionEngine and CodeIgniter 將不再支援 PHP4,PHP4 從2000年出來,到 2007 年結束,重點來了,官方說PHP 4 帶給您的困擾,就如同現在 Internet Explorer 6。 可以參考: What’s New in CodeIgniter 2.0
See also
- CodeIgniter 3.0 Release 終於釋出啦
 - CodeIgniter 搭配 Homestead 開發環境
 - CodeIgniter 終於找到新東家 British Columbia Institute of Technology 英屬哥倫比亞理工學院
 - 實戰 CodeIgniter in 成功大學計算機與網路中心
 - 升級 PHP Facebook SDK 到 4.0.x 版本
 - CodeIgniter 初始化 Library 流程
 - HAProxy 搭配 CodeIgniter 取使用者真實 IP
 - 2013 PHPConf Introduction to Gearman in PHP
 - CodeIgniter REST Server with Backbone.js Issue
 - Cross Site Request Forgery in JS Web Apps and CodeIgniter PHP Framework