I need to create multi domain for my Zend project but I dont know how.
What I want to do is :
The user types “www.mydomain42.tld” and he’s on “www.myzendapp.tld/domain/42” without seeing it.
How can I do this ?
Thank you.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You may want to look at adding a method into your
Bootstrap.phpclass to check the domain at initiation and to set these variables in some globally accessible register.This means you won’t need to mess with your routes for every part of the application.
e.g.