Application Phpcms V9 easy to complete WAP mobile website building Full Course

Source: Internet
Author: User


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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.