I am creating a mobile web site based on one of the website i have already got in production. I would like to share functionality and models i have created in the web site currently in production. I am going to create a sub domain for this mobile site, e.g. m.mysite.com.
What is the best approach for this?
I do not want to create a separate project just for the mobile site. This would give me lots of duplicated code and logic. I have read about re-routing sub domains to modules, is this a valid approach for what i want to achieve?