I been trying all day to get a form to submit Ajax and nothing. I removed
the security component and it worked perfectly. I have not modified the form
in any way but when I add the security component it never saves the data.
The form is submitted Ajax. Is there something i am missing?
 
Form:
<div class="users form"> <?php echo $form->create('User' , array('url' =>
array( 'controller' => 'users', 'action' => 'systems'))); ?>
  <fieldset>
    <p> Select from the options below</p>
    <div class="user_checks">
      <?php
  echo $form->input('System', array('multiple'=>'checkbox',
            'label'=>false));
 ?>
    </div>
  </fieldset>
  <?php echo $form->end('Submit');?> 
</div>

When I add the security component I see the save data
 
Array
(
    [_Token] => Array
        (
            [key] => 405c4e360e9cc6f6df4f3c112c03c7a16b104ddf
            [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] => 3
                    [9] => 4
                )

        )

)

But nothing saves, remove the component and works perfect.

Am I missing something? beforeFilter beforeRender?

 
Dave


--~--~---------~--~----~------------~-------~--~----~
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