After the PHPCMS Research Center website (http://phpcms.org.cn) was built with Phpcms's newly released V9, users raised the issue of mobile phone access and started to set up a WAP wireless station (wap.phpcms.org.cn).
The following steps are required to complete the WAP setup with Phpcms V9:
First step: Domain name resolution and build station
Enter the domain name management, establish a record, resolve to the corresponding IP address, such as the wap.phpcms.org.cn Resolves to 202.165.183.12, builds a station in the Web service settings (IIS or Apache), The home directory is the same as Phpcms.org.cn's home directory, but the default first page is set to index.php, and Phpcms.org.cn's default home is Index.html
The second step: Add the Phone portal in phpcms V9 admin background
Phpcms V9 Admin Center module "mobile phone Portal" Add mobile site
Fill in the site name, LOGO, bound domain name, note that the domain name must be http://begins.
Step Three: Classification management
in the mobile Phone Portal list management operation there is a "classification management", WAP classification needs to be new, and then bind the corresponding columns, this coupling way is better, also more flexible.
Fourth Step: Change route.php
file path/caches/configs/route.php
Add
' wap.phpcms.org.cn ' in return array =>array (' m ' = = ' wap ', ' c ' = ' = ' index ', ' a ' = ' = ' init ', ' Data ' =>array (' GET ' =>array (' SiteID ' =>1) '),
and then save the
after 4 steps to complete the WAP Mobile station building, the example can be seen wap.phpcms.org.cn
WAP template can be found in the PHPCMS V9 Background Management Center interface template style to find the change!wap. Phpcms.org.cn have made some changes to the template, we can refer to.
Original address: http://www.im286.com/thread-9592735-1-1.html
Application Phpcms V9 easy to complete WAP mobile website building Full Course