Yii For Mobile Devices Only For Wordpress Website


I am trying to use Yii webapp to serve content to mobile devices only on a wordpress website from a separate subdomain (m.website.com/same-url-as-the-desktop-version). i’ve read all the topics about integrating yii and wordpress, but i dont see any of them helping in this situation.

any ideas?