I don't know PHP at all. I don't know if I can use a mobile phone to access a website and automatically call a specified template to display the mobile page? I don't know how to write code. Because my program on the Internet generates static files and static template files, I am thinking about how to use a mobile phone to access the files... I don't know PHP at all. I don't know if I can use a mobile phone to access a website and automatically call a specified template to display the mobile page? I don't know how to write code. Because my program on the Internet generates static templates and static templates, I am thinking about how to call the template file of the mobile phone when accessing the mobile phone.
I don't know what I described. I hope I can help solve the problem. Thank you !~
Reply content:
I don't know PHP at all. I don't know if I can use a mobile phone to access a website and automatically call a specified template to display the mobile page? I don't know how to write code. Because my program on the Internet generates static templates and static templates, I am thinking about how to call the template file of the mobile phone when accessing the mobile phone.
I don't know what I described. I hope I can help solve the problem. Thank you !~
Call the mobile phone template when determining UA as a mobile phone
Determine whether the current access device is a mobile phone. If it is a mobile phone, directly execute the corresponding template file in the mobile Directory.
Http://detectmobilebrowsers.com/