My beloved PHP Framework Codeigniter has changed from 1.* to 2.* version

18 Jun

Some changes in CI 2.0.2:

  • General changes
    • The Security library was moved to the core and is now loaded automatically. Please remove your loading calls.
    • The CI_SHA class is now deprecated. All supported versions of PHP provide a sha1() function.
    • constants.php will now be loaded from the environment folder if available.
    • Added language key error logging
    • Made Environment Support optional. Comment out or delete the constant to stop environment checks.
    • Added Environment Support for Hooks.
    • Added CI_ Prefix to the Cache driver.
  • Helpers
    • Removed the previously deprecated dohash() from the Security helper; use do_hash() instead.
    • Changed the ‘plural’ function so that it doesn’t ruin the captalization of your string. It also take into consideration acronyms which are all caps.
  • Database
    • $this->db->count_all_results() will now return an integer instead of a string.

For more details for changes, update and bug fixes go to codeigniter website.

See the different folder structure from:

CI 1.7.3 (the latest version of ci 1.* version)

And below CI 2.0.2 folder structure (the current release when i wrote this)

Little note in CI 2.0.2:

  1. Use prefix CI_ for Controller and Model (ex. class Controller_Name extends CI_Controller)
  2. If you are using session libraries, fill the encryption_key in config.php
  3. Base_url help a lot
Advertisements

2 Responses to “My beloved PHP Framework Codeigniter has changed from 1.* to 2.* version”

  1. siswilogikakehidupan June 21, 2011 at 6:06 am #

    jadi beloved nya php ya pak 😛

    • Yamiyami June 21, 2011 at 6:56 am #

      @siswi mata kuliah logika kehidupan kamu salah kelas, pindah ke kelas sebelah sana 😀

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: