Upgrade CakePHP

De la wiki.civvic.ro
Sari la navigare Sari la căutare


Note luate în timpul upgrade-ului de la CakePHP 1.3.7 la 2.0.5

Aranjează fișierele .htaccess

cd cakephp-2.0.5
svn mv .htaccess .htaccess.sample
svn mv app/.htaccess app/.htaccess.sample
svn mv app/webroot/.htaccess app/webroot/.htaccess.sample

Acum editează cele 3 fișiere .htaccess și adaugă la fiecare, după RewriteEngine, linia

# RewriteBase    /~cata/civvic/cakephp

Acum fă commit la cele trei fișiere:

svn commit


  • ignores: app/tmp/*, app/tmp/<each_one>/*
  • ignores: app/config/database.php, app/libs/config.php
  • (obtained with "svn proplist -Rv|grep -B 1 -A 1 ignore")
  • app/config/bootstrap.php: setlocale(LC_ALL, "ro_RO.utf8");
  • app/config/core.php: session stuff
  • app/config/database.php
  • app/controllers
  • app/libs
  • app/locale
  • app/models
  • app/schema-changes
  • app/vendor/shells
  • app/views/...
  • app/webroot
  • vendors/Auth (openid stuff)
  • rerun setup.sh