Zend方法bool isHTTPS()检查SSL

时间:2013-12-16 10:45:34

标签: php zend-framework zend-framework2

ZF2中是否有方法返回请求是否来自HTTPS?

$this->getRequest()->isHTTPS()

1 个答案:

答案 0 :(得分:2)

支票是:

$this->getRequest()->isSecure()