In 1.2 at least (and quickly checking the 1.1 API, it is indeed a 1.2
only feature), you can use the Security component's requireSecure()
method to list controller methods that must be using SSL, and then use
the blackHoleCallback property to set a method to call if the
requireSecure() fails.

function beforeFilter() {

  // We could list specific methods instead by
  // passing an array of the desired method names
  $this->Security->requireSecure();

  // If requireSecure() fails, call $this->_blackHole()
  $this->Security->blackHoleCallback = '_blackHole';
}


I'm still trying to find a way to make the various link() and url()
functions all explicitly https (with the full path) to correspond with
using the requireSecure() method.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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