Migrating from Cake 1.3 to 2.0 and beyond - migrate existing, or only use for new?

前端 未结 3 1091
执念已碎
执念已碎 2021-02-13 21:34

I\'m nearling completion of my first CakePHP-driven website and just saw they\'re already working on CakePHP 2.0 (not the stable release yet).

My questions:

3条回答
  •  故里飘歌
    2021-02-13 22:28

    I'm migrating an app 1.3»2.0rc1 right now and I got no big trouble.

    1. I had to change names of folder/files, eg. app_controller.php » Controller/AppController.php
    2. Follow the migration link (tmp link) http://book2.cakephp.org/en/appendices/2-0-migration-guide.html
    3. plugins/components/.. from various source won't work (at minus, for point 1)
    4. To update the code (which in my case wasn't needed as the app worked well) I've shell-baked a dummy table and looked at differences in code.. It's a good starting point
    5. Authentication/Authorization changed in some config, but requires few changes.
    6. Trees still working
    7. Acl don't. But I'm quite sure it's my fault.

    For now it's all, good work!

提交回复
热议问题