Phpcms Label parsing

Source: Internet
Author: User
Tags php class php mysql

Phpcms each PC label corresponds to modules controller next Tag.class class

Like what

{pc:content action= "position" posid= "2" order= "Listorder DESC" num= "4"}<ul>{loop $data $key $val}<Li> <ahref= "{$val [' url ']}">{$val [' title ']}</a></Li>{/loop}</ul>{/PC}

is through the position method in the Content_tags.class.php class in classes in the content controller

The Position_data_model data model must be found.

and the table to be manipulated Position_data

and database operations class model.class.php mysql.class.php

The PC tag invocation can be understood as a URL request, but a method and a data model are found through the controller

The controller of the PC label is under the Modules folder under the corresponding module folder under the Classes folder suffix _tag.class.php

Finally, each PC tag corresponds to a single datasheet

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.