Before learning about the template code of DedeCms, it is very meaningful to know about the zhimeng template engine. The zhimeng template engine is a template parser that uses XML Namespaces. The biggest advantage of using the zhimeng parser to parse templates is that you can easily define
tag library, you must first define a tag library to describe the file TLD ). This is an XML-based script file, this file defines the XML version, the encoding used, the tag library version, the JSP version used, the tag library name, and all the tags contained in this libra
'tagactiondispatcher ':// Setup the application specific ActionDispatcher (RequestDispatcher)$ ActionDispatcher = 'tagactiondispatcher ';
Template tag system database root directory
We also need to set the path to point to our PHP. MVC Library (the absolute path of the file system is required ):// Set php. MVC library root directory (no trailing slash ).$ AppServerRootDir = 'C: \ WWW \ phpmvc-base ';
Optio
)$ ActionDispatcher = 'tagactiondispatcher ';
Template tag system database root directory
We also need to set the path to point to our PHP. MVC Library (the absolute path of the file system is required ):// Set php. MVC library root directory (no trailing slash ).$ AppServerRootDir = 'C: \ WWW \ phpmvc-base ';
Optional
You can use the $ timerRun attribute to enable or disable an application timer:// Timer r
, $errors, and $data objects from the request, if any of these objects have been created before (for example, in the Action Class), the object will now be invisible in the resource template, or the object will be set to null.Re-obtain the reference for the Viewresourcesconfig object, which contains the configuration parameters.Sets the path to the template source file and the compiled
required ):// Set php. MVC library root directory (no trailing slash ).$ AppServerRootDir = 'C: \ WWW \ phpmvc-base ';
Optional
You can use the $ timerRun attribute to enable or disable an application timer:// Timer reporting. 1 = on, 0 = off$ TimerRun = 1;You can also guide the framework to always (forcibly) compile the application phpmvc-config.xml configuration class (preferably in the development phase, because it will be slow), we use:// The application XML configuration data set:$ AppXmlC
Webwork2 Tag: Theme template
use the UI tag provided by webwork on the JSP page, mainly the radio tag, at first, I was not quite comfortable with the XHTML theme template. Many table elements were inserted in the
directory (no trailing slash ).$ AppServerRootDir = 'C: \ WWW \ phpmvc-base ';
Optional
You can use the $ timerRun attribute to enable or disable an application Timer:// Timer reporting. 1 = on, 0 = off$ TimerRun = 1;You can also guide the framework to always (forcibly) Compile the application phpmvc-config.xml configuration class (preferably in the development phase, because it will be slow), we use:// The application XML configuration data set:$ AppXmlCfgs = array ();$ AppXmlCfgs ['config'] =
= "parameter value" parameter name = "parameter value "}
Action: The value of this parameter indicates an operation event. The model PC label must contain this parameter to describe the operation to be performed.
Catid: gets the ID of the channel column and the data of the column.
Num: gets the number of records, and is finally transferred to the processing function by the template engine as limit.
Order:
Thinkphp template tag if and eq differences and comparison instance analysis. Thinkphp template tag if and eq differences and comparison example analysis this article describes the Thinkphp template tag if and eq differences and c
This article mainly introduces the usage of the Volist tag generated by the ThinkPHP template in a loop, and analyzes the Volist tag function, usage methods, and related precautions in detail based on the instance form, for more information about how to use the ThinkPHP template to generate a Volist
This article mainly introduces the usage of the Volist tag generated by the ThinkPHP template in a loop, and analyzes the Volist tag function, usage methods, and related precautions in detail based on the instance form, for more information about how to use the ThinkPHP template to generate a Volist
Phpcmsv9 is a common method of tag. Phpcmsv9 template to create a set of common code 1. the length of the call title {str_cut ($ r [title], 36,)} is intercepted, and the quotation marks are used to remove .... 2. formatting time call formatting Time 2011-05-061 phpcms v9 template creation common code set
1. extract the Call Title length
{Str_cut ($ r [titl
be static3. Concrete Effect: The red box outside the chart is a template, the red box is the Inheritance Template page implementation, both unified and convenient. Isn't that what you're dreaming of?Attention:1. JSP Tag files are placed in the/web-inf/tags/directory by default and are referenced directly using the file name
This article describes how to use the ThinkPHP template to determine the output Defined tag. For more information, see
This article describes how to use the ThinkPHP template to determine the output Defined tag. For more information, see
The defined tag of the Th
Destoon template Tag Call code large collection Beginners Learn the following labels for Destoon to business-to-business systems, and are familiar with the following tabs to learn Destoon easily. 1. Global Label Site name: {$DT [sitename]} website address: {Dt_path} website logo: {if $MODULE [$moduleid][logo]}{dt_skin}image/logo_{$moduleid}.gif {ElseIf $DT [log
Surge. js updated version 0.2.3 Alpha, added support for the with Tag, removed context reference from the template, and fixed the bug of the if tag.Remove context
Surge. js compiles the Template into a js function, which receives a context parameter. Therefore, the variables in the template must be attributes in the co
This article describes how to use the ThinkPHP template to determine the output Defined tag. For more information, see the defined tag of the ThinkPHP template engine.
Determine whether a constant has been defined.
The defined tag of ThinkPHP is used to determine whether a c
The benefits of static pages will not be mentioned. the implementation method we will introduce below is to use the defined template page and tag, and then use php to read the template page and enter the analysis and replacement, here are two examples. solution: Use the template replacement technology (no time delay...
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.