It is worth thinking about the issues related to the generation of static pages by smarty

Source: Internet
Author: User
Why does smarty generate static pages? This post was last edited by bing15 at 2013-03-0616: 36: 02. I want to use smarty to generate a list page, which is really static. For example, classification: there are 50 pieces of news data. Why is it worth thinking about generating static pages for 10 smarty on a list page?
This post was edited by bing15 at 16:36:02 on. I want to use smarty to generate a list page, which is really static.
For example:
Category: News
50 data entries in total.
A list page contains 10 data records.
There are 5 tabs in total.

For example, dedecms generates a column page.
How can this problem be achieved? Write a small example.
------ Solution --------------------
There is no difference between smarty and php.
------ Solution --------------------
To make the five pages of the generated content into pages in a certain format, you must write a method in smarty.
------ Solution --------------------
Http://bbs.php100.com/read-htm-tid-308311.html

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.