Two different sets of data......

First is with Security component added in app_controller

When I debug 

debug($this->data); right before the save
$this->User->save($this->data, true,
array_keys($this->User->$join_table->schema()))

Array
(
    [_Token] => Array
        (
            [key] => f653941fc718b276cf8f28b41f5bb1b3a812047c
            [fields] =>
6c5072f719544a7d300fe09d7030e1da27e2652b%3An%3A0%3A%7B%7D
        )

    [System] => Array
        (
            [System] => Array
                (
                    [0] => 13
                    [1] => 1
                    [2] => 9
                    [3] => 8
                    [4] => 7
                    [5] => 6
                    [6] => 11
                    [7] => 5
                    [8] => 4
                    [9] => 12
                    [10] => 2
                    [11] => 14
                )

        )

)

Debug the save its self and I get
1

Just the number 1....and nothing saves

Remove security component and debug the same save and I get

Array
(
    [System] => Array
        (
            [System] => Array
                (
                    [0] => 13
                    [1] => 7
                    [2] => 6
                    [3] => 11
                    [4] => 5
                    [5] => 4
                    [6] => 12
                    [7] => 2
                    [8] => 14
                )

        )

)

And the save returns number 1 
app/controllers/users_controller.php (line 236)

1

Which is debug($this->User->save($this->data, true,
array_keys($this->User->$join_table->schema())));

-----Original Message-----
From: Miles J [mailto:[email protected]] 
Sent: June-03-09 2:50 AM
To: CakePHP
Subject: Re: Security Component and AJAX


At /joesmith/update/systems/, if you can debug the data you should be able
to save it. What exactly happens, a white page?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to