Cakephp Upgrade from 1.3 to 2.1

前端 未结 4 373
佛祖请我去吃肉
佛祖请我去吃肉 2021-02-02 03:52

UPDATE: the question i asked doesn\'t quite cover how deep i went in doing this upgrade! If you stumble on this, i hope the answer i pushed is useful to you

So, in an ef

4条回答
  •  死守一世寂寞
    2021-02-02 04:28

    You probably had a custom Cake path set in app/webroot/index.php. The directory structure for Cake 2.0 has changed slightly and normally this would be handled by the new code which automatically finds the right value for CAKE_CORE_INCLUDE_PATH. Also, make sure APP_DIR is set correctly in the same index.php file.

    Make sure app/webroot/index.php contains the correct path to Cake, which is /path/to/cake/lib.

    if (!defined('CAKE_CORE_INCLUDE_PATH')) {
      define('CAKE_CORE_INCLUDE_PATH', DS.'path'.DS.'to'.DS.'cake'.DS.'lib');
    }
    

    Reverting back to the standard define('CAKE_CORE_INCLUDE_PATH', ROOT) might work as well, if the way Cake is set up is not too custom.

提交回复
热议问题