We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

How to pass the sub domain name as parameter to Controller/Action?



13.0k
Accepted
answer
edited Jun '15

maybe you can match on the HTTP host of the incoming request or adding routes conditionally based on the current host

u can read this post https://forum.phalcon.io/discussion/52/subdomain-routing-and-link-generation