echo $ajax->link('remove', array(
'controller' => 'posts',
'action' => 'remove',
$id
),
array(
'update' => 'ajaxContent',
'with' => '{
username: "'.$user.'",
page: "'.$page.'",
sort: [\'ab\', \'cd\'],
direction: [12, 23]
}'
)
);
In controller I debug $this->params['form'] and response is:
Array
(
[username] => admin
[page] => 1
[sort] => cd
[direction] => 23
)
As you can see, sort and direction just store last item of serialized
element (cd and 23), how can I code the with parameter to render an
array of all sort and direction elements???
Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
No comments:
Post a Comment