cakephp如何删除authcomponent错误

时间:2013-08-13 21:43:35

标签: cakephp authentication cakephp-2.0 cakephp-2.1

我正在开发一个Cakephp 2.x ..我遇到的问题是我的webapp上出现错误时..这个错误总是显示在页面顶部然后实际错误来了.. < / p>

  

AuthComponent :: identify()必须是CakeRequest的实例,为null   给予,召唤   C:\ XAMPP \ htdocs中\ allsecure \ lib中\蛋糕\控制器\元器件\ AuthComponent.php   在第547行并定义   [CORE \蛋糕\控制器\元器件\ AuthComponent.php

     

传递给AuthComponent的参数2 :: identify()必须是。的实例   CakeResponse,null给出,调用   C:\ XAMPP \ htdocs中\ allsecure \ lib中\蛋糕\控制器\元器件\ AuthComponent.php   在第547行并定义   [CORE \ Cake \ Controller \ Component \ AuthComponent.php,第690行]

     

警告(4096):传递给FormAuthenticate :: authenticate()的参数1   必须是CakeRequest的一个实例,null给定,调用   C:\ XAMPP \ htdocs中\ allsecure \ lib中\蛋糕\控制器\元器件\ AuthComponent.php   在第695行并定义   [CORE \ Cake \ Controller \ Component \ Auth \ FormAuthenticate.php,第70行]

然后出现实际错误,例如

  

缺少控制器操作..

如何删除以上身份验证错误

0 个答案:

没有答案