Details about template calls

Source: Internet
Author: User
This article mainly introduces the dedecms template to call and parse the simplest code. For more information, see dedecms Template: www. php. cnxiazaicodededecms & amp; lt ;? Php & amp; nbsp; require_once & amp; nbsp; (dirname (FILE) & amp; nbsp ;. & amp; nbsp; & amp; quot; includecommon. inc. php & amp; quot;); & amp ;... this article mainly introduces the dedecms template to call and parse the simplest code. For more information, see dedecms Template: www.php1.cn/xiazai/code/dededecms. SetTemplet ($ pai_basedir.

1. dedecms template calls simple code instance for parsing

Introduction: various problems in the secondary development and use of phpcms v9 solution (I) template call 1. content tag, call with serial number 123456789? {Pc: contentaction = listscatid = $ catidord... phpcms v9 secondary development and use of various problems solution (1) template call 1. content tag, call with serial number 123456789? {Pc: content action = lists catid =

4. discuz template Discuz template statement analysis and knowledge skills

Introduction: discuz Template: discuz template Discuz template statement analysis and knowledge and skills: 1. template calling. for example, if you want to call the content of another template in a template, you can use the following statement: {template xxx} assume that a new template named "abc.htm" is created and is displayed as "acb" only when the background template is edited. you need to call it in index, then add {template abc} to the appropriate position in the index, and it will be used automatically. Related instances: in the index template, the top is {template header}, and the bottom is

5. destoon custom template calling method destoon style bulletin board

Introduction: destoon custom template calling method destoon style bulletin board

6. explain THINKHP template call function

Introduction: Please explain how THINKHP templates call functions

7. What are the best methods for getting data from templates?

Introduction: there are some good methods to actively obtain data in a template. to prevent data from being provided in a program but not used in a template, at the same time, in order to make the template more available to users and obtain data based on the template needs, I have compiled many tag functions for template calling in the past, insert the Tag function directly in the template to obtain the data. recently, the program was developed in the framework mode. the original Tag function was written in the Tag class library and the Tag: func () was used for calling () of course

8. how to add a field in dedecms and then call it in the template?

Introduction: in dedecms, how do I add a field and call it in the template? How to add a field to dedecms? In the application, I want to add some products in the background, but I want to add a quote field. how can I add a text box in the background and then call it in the template? ------ Solution -------------------- locate the template and add multiple text boxes to the table and add multiple fields to the submit page.

9. ask for THINKHP template call function

Introduction: Please explain how the THINKHP template can call functions {$ list ['id'] | function =###} normally, the value obtained by $ list ['id'] is 0, but cannot be called normally if it is changed to {0 | function =. {0 | function =###} is displayed directly on the page ###}. Solution ------ solution ------------

[Related Q & A recommendations ]:

Symfony-how to configure a public template variable

The above is a detailed introduction to template calls. For more information, see other related articles in the first PHP community!

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.