Welcome Guest, Not a member yet? Register   Sign In
Need is_https()
#2

(This post was last modified: 09-10-2020, 05:53 AM by MGatner.)

This is already part of the IncomingRequest class, isSecure(). You can access it anywhere like so:

service(‘request’)->isSecure()

https://github.com/codeigniter4/CodeIgni...t.php#L292
Reply


Messages In This Thread
Need is_https() - by murad_ali - 09-03-2020, 08:43 AM
RE: Need is_https() - by MGatner - 09-10-2020, 05:52 AM
RE: Need is_https() - by murad_ali - 09-10-2020, 06:35 AM



Theme © iAndrew 2016 - Forum software by © MyBB