Hi there,

I have a checkout controller with the following in it:

        $this->Security->validatePost = false;
        $this->Security->csrfCheck = false;
        $this->Security->blackHoleCallback = 'forceSSL';
        $this->Security->requireSecure('index');
        $this->Security->allowedControllers = array('Carts');
        $this->Security->allowedActions = array('index');
        $this->Security->allowedFields = array('Checkout.method');
        $this->Auth->allow('index','processPaypal', 'processMerchant');

And I have the following on my cart page:

<?php echo $this->Form->postButton('Checkout with PayPal', 
array('controller'=>'checkouts','action' => 'index'), 
array('data'=>array('Checkout.method'=>'paypal'))); ?>

Can anyone tell me why the contents of 'data' are always empty on the 
checkout index?

I would assume that I have told it to allow carts to post to checkout/index?

I'm stumped :(

d//t

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to