CakePHP1.2 RC2 SSLæ¥ç¶ãå¿ é ã«ããã«ã¯ Security ã³ã³ãã¼ãã³ããå©ç¨ãã¾ãã class SampleController extends AppController { var $components = array('Security'); function beforeFilter() { // ã¨ã©ã¼æã®å¼ã³åºãé¢æ°æå® $this->Security->blackHoleCallback = '_sslFail'; // å ¨ã¢ã¯ã·ã§ã³ã SSL ã®å¯¾è±¡ã«ãã $this->Security->requireSecure(); } /** * SSLå¼ã³åºãã¨ã©ã¼å¦ç */ function _sslFail($err) { if ($err === 'secure') { $this->redirect('https://**********.com/
{{#tags}}- {{label}}
{{/tags}}