Welcome to the Cookbook

loading...

11.1 Migrating from CakePHP 1.1 to 1.2

A number of changes have been made to the organization of the CakePHP framework. This guide is intended to highlight a number of the key areas that will need to be addressed when porting your application from version 1.1 to 1.2

Quick Reference Guide

  • Backup your application before migration
  • Download the latest CakePHP package
  • upgrade the ‘cake’ folder: delete the old one and copy the new in place
  • upgrade the ‘app/webroot/*.php’ files: delete the old one and copy the new in place
  • upgrade the ‘app/config/core.php’ file: merge the new into the old (or just copy over and re-configure)
  • upgrade the ‘app/config/routes.php’ file: merge the new into the old (or just copy over and re-configure)
  • rename all .thtml files to .ctp
  • continue through the rest of this guide to identify code issues which will need to be changed

You may also want to checkout the following plugin, which does a great job of renaming the .thtml files for you, and does an ok job of helping to idenify code issues. https://github.com/zeroasterisk/CakePHP-cake_up-shell