升级到cakephp2.x后,表单数据在CakeRequest中进行哈希处理

时间:2015-10-15 06:46:32

标签: cakephp cakephp-2.0 cakephp-1.3

我最近刚刚从cakephp 1.3升级到2.06。但是,当我尝试访问控制器中的表单数据时,数据的散列方式如下:

2015-10-15 08:43:57 Error: CakeRequest Object
(
[params] => Array
    (
        [plugin] => 
        [controller] => custom_users
        [action] => ajax_login
        [named] => Array
            (
            )

        [pass] => Array
            (
            )

        [isAjax] => 1
    )

[data] => e1fe8b4c1724c30148e306708f27b30909f23d45

我检查了表格是否在前端正确形成。 文档表明我应该能够以这种方式访问​​我的数据,但由于某种原因,这种行为正在发生。有什么想法吗?

我添加了我在尝试提交表单时获得的跟踪:

Notice: Array to string conversion in /var/www/html/academy/lib/Cake/Utility/Security.php on line 92

Notice: Undefined offset: 1 in /var/www/html/academy/lib/Cake/Network/CakeResponse.php on line 456

Warning: Illegal string offset 'CustomUser' in /var/www/html/academy/app/Controller/CustomUsersController.php on line 569

Warning: Illegal string offset 'username' in /var/www/html/academy/app/Controller/CustomUsersController.php on line 569

Warning: Illegal string offset 'CustomUser' in /var/www/html/academy/app/Controller/CustomUsersController.php on line 570

Warning: Illegal string offset 'password' in /var/www/html/academy/app/Controller/CustomUsersController.php on line 570

Warning: implode(): Argument must be an array in /var/www/html/academy/lib/Cake/Utility/Security.php on line 92

Fatal error: Call to undefined method CustomAuthComponent::getModel() in /var/www/html/academy/app/Controller/Component/CustomAuthComponent.php on line 242

0 个答案:

没有答案