06

CodeIgniter 2 has been released

Posted: 2 Years ago Bookmark and Share

A few days ago CodeIgniter 2 was (finally) released and I've now upgraded this site to run it. CI2 drops PHP 4 support and adds a 'core' branch for Ellis Labs own product development and a 'reactor' branch for community-led development. A good idea I think, considering the slow development progress of CI recently. Anyway my upgrade to CI2 wasn't exactly plain sailing and I've listed the problems - and solutions - below.

Firstly I have to say for the first time ever, I've been disappointed with the CI docs. The upgrade notes for CI 2 do not mention key steps. It mentions that you need to 'replace all files and directories in your "system" folder except your application folder' but doesn't mention that you need to replace (or update) your index.php file or add numerous new files (config/profiler.php, config/foreign_chars.php) and directories (cache, core, third_party) in the application folder itself. Note that when you're updating your index.php file you might want to set the application path to under /system as was the default before CI2 - the doc's don't mention this either.

OK, upgrade complete - except, wait, now the url rewriting rules no longer work. Whether its a bug or just an unintended side effect, a change somewhere means you need to modify $config['uri_protocol'] value in application/config/config.php from AUTO to one of the other values. You will just have to go through each one and see what happens - on my Xampp server PATH_INFO works, but on this Linux server I have to use QUERY_STRING. Apparently this has been fixed in the reactor development version.

Also don't forget there is a new CSRF protection feature that you need to add to your application/config/config.php file.

I know these are just teething problems - and I'm in no way complaining, it is a free product after all - I just wanted to write down some of the problems I've had in the hope of helping others.


Related posts:


php web codeigniter
Comments
BvLMiEGISZ
Posted 4 Days ago
gravatar

http://conntact.com/bol/buytramadol/#6 tramadol 50 mg online pharmacy - buy tramadol overnight delivery

Report this comment
Add your comment
Name*
Email Address*
Will not be published.
Comment*
Comment formatting guidelines.
CAPTCHA*
Helps to reduce spam submissions.