Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

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



7.7k
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.phalconphp.com/discussion/52/subdomain-routing-and-link-generation