服務(wù)器 nginx+ tomcat
桌面端 www.oschina.net
移動端 m.oschina.net
桌面和移動端是兩個模板 , 是部署2個程序呢? 還是在一個程序里判斷訪問url進行判斷選擇模板?
小伙看你根骨奇佳,潛力無限,來學(xué)PHP伐。
I wonder if there is a module similar to tp to bind domain names? It can be different modules in one project. The mobile terminal switching template is judged through the URL. If the logical parts of the two are somewhat inconsistent, it is better to write the program separately for better management... Common data can be implemented by accessing a certain interface. In this way, if the function is changed, the interface is changed, and the template is corresponding. Everyone changes their own
Deploy two sites, determine whether it is a mobile terminal or PC terminal in the entrance, and jump to the corresponding site respectively.