CakePHP 2.0 alternative for Configure::getInstance?
-
27-10-2019 - |
문제
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?
해결책
cake 2.x uses AclExtras as explaind in http://book.cakephp.org/2.0/en/tutorials-and-examples/simple-acl-controlled-application/part-two.html to set this up.
다른 팁
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>
.
제휴하지 않습니다 StackOverflow