On Dec 31 2007, 10:05 am, Robby Anderson <[EMAIL PROTECTED]>
wrote:
> 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.
Thanks all for the replies. I did not actually see any responses to
this thread as for some reason my gmail account was removed from
google groups and I just happened to search and saw my own thread.
This sounds exactly like what I need.
Regards,
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---