开发者

Custom Smarty Templates based on user request

The using the user agent function of PHP is there an easy way to serve up custom style-sheets and Smarty Temp开发者_C百科lates based on what device their using: eg a mobile device vs laptop/desktop.


The user agent will tell you what device the user is using. You could use something like http://mobiforge.com/developing/story/lightweight-device-detection-php or http://detectmobilebrowser.com/ to detect what kind of device is being used and then serve the corresponding smarty template

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜