I'm currently trying to migrate from CakePHP 1.3 to 2.0. Do you know an alternative for Configure::getInstance() that works in CakePHP 2.0?

有帮助吗?

解决方案

其他提示

I don't know why you used Configure::getInstance() in CakePHP 1.3, but all methods of the Configure class in CakePHP 2.0 are static, so you can call them with Configure::<METHOD_NAME>.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top