ThinkPHP paging URL Error

Source: Internet
Author: User
LocalhostHomeindex.phpIndexcatid2p2.html has more catid2, where cat has no value. It should be p2 only. What is the problem? Paging import (& #039; ORG. util. page & #039;); $ pagenewPage ($ count, 40); $ show $ pag... localhost/Home/index. php/Index/cat // id/2/p/2.html

More cat/id/2/, where cat has no value. It should be only p/2. What is the problem?

Page under menu Method

Import ('org. Util. page ');
$ Page = new Page ($ count, 40 );
$ Show = $ page-> show ();
$ List = $ comm-> query ($ SQL );

It is the jump from the cat Method to the menu method. There are no problems with the 40 records displayed on each page. It is because the paging jump URL has several more parameters. Thank you.

Reply content:

Localhost/Home/index. php/Index/cat // id/2/p/2.html

More cat/id/2/, where cat has no value. It should be only p/2. What is the problem?

Page under menu Method

Import ('org. Util. page ');
$ Page = new Page ($ count, 40 );
$ Show = $ page-> show ();
$ List = $ comm-> query ($ SQL );

It is the jump from the cat Method to the menu method. There are no problems with the 40 records displayed on each page. It is because the paging jump URL has several more parameters. Thank you.

Please paste the detailed code: including the code that you reference the part of the page !!!

However, it should be stated in advance that your cat is just one of your methods. The only redundant one may be the cat behind/. Remove one/and try it. In addition, is your framework the original version and modified by others?

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.