Skip to main content

Posts

Showing posts from January, 2015

Migrating from CakePHP 1.3 to CakePHP 2.x

Installing CakePHP 2.0 This is pretty straight forward. Install Cake per the instructions. There isn't much difference between installing CakePHP 2.0 and previous versions. Unzip the downloaded file in your desired location. Configure CakePHP core.php You should start with default core.php file. Update the configuration values to match those in the app you are migrating. Make sure you copy the Security.salt and Security.cipher_seed from your old core.php or you won't be able to login in addition to other possible security issues. Copy any custom configuration values you have added to your old core.php. Take notice of how errors, sessions, and caching has changed. database.php The database configuration has only a minor change in how you designate the database engine. Previously, you used this: 'driver' => 'mysqli', now, you use this: 'datasource' => 'Database/Mysql', routes.php The Route file has been changes sligh