you can setup a callback with:
$this->Security->blackHoleCallback = 'switch2secure';
and in your controller:
function switch2secure($param) { // param will be array('secure') in
your case
// redirect to https
}
On 2 avr, 11:49, Kusok <[EMAIL PROTECTED]> wrote:
> I need to enable https for some site sections. I am using the
> SecurityComponent::requireSecure to define the actions I need to be
> secured. The question now is how to switch from http to https when
> that action is triggered.
> So I have a login controller and an index action, when that action is
> hit with http I want it to switch to https. How could this be done?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---