gpt4 book ai didi

cakephp - CakePHP cakeError()?

转载 作者:行者123 更新时间:2023-12-03 08:15:16 28 4
gpt4 key购买 nike

我找不到有关cakeError()定义为成员函数的任何信息。 documentation仅声明该调用看起来像这样:

$this->cakeError(string $errorType [, array $parameters]);

但是在我的AppController子类中调用它可以得到 Call to undefined method EntriesController::cakeError()
cakeError()在哪里定义?

最佳答案

CakePHP 2.x:

http://book.cakephp.org/2.0/en/development/errors.html

For 2.0 Object::cakeError() has been removed. Instead it has been replaced with a number of exceptions. All of the core classes that previously called cakeError are now throwing exceptions. This lets you either choose to handle the errors in your application code, or let the built in exception handling deal with them.



CakePHP 1.3:

http://api13.cakephp.org/view_source/object/#line-187

http://api13.cakephp.org/class/object#method-ObjectcakeError

关于cakephp - CakePHP cakeError()?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12440178/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com