I have 2 domain: domain1.com and domain2.com
how can i know what is the domain that the user used to call a action?
like
domain1.com/controller/action
i want get domain1.com from the action
is possible?
thanks
I have 2 domain: domain1.com and domain2.com
how can i know what is the domain that the user used to call a action?
like
domain1.com/controller/action
i want get domain1.com from the action
is possible?
thanks
Use the host
method. If you require the port as well, use host_with_port
.