dedecmsv5.7 is a PHP website content management system. This article will introduce how to use the dedecmsv5.7 front-end template to output variables. It has certain reference significance. Interested friends can learn about it.
How to assign the data queried from the PHP file to the front-end page for display?
For example:
PHP file: agency.php
require_once(dirname(__FILE__) . '/../../include/common.inc.php'); require_once(DEDEINC.'/arc.agency.class.php'); $test = 123;$arc = new agency(DEDETEMPLATE."/default/agency/edit_face.htm"); $arc->Display();
Front-end template: edit_face.htm
<!--输出变量--> {dede:global name="test"/}
Or:
<!--输出变量--> {dede:global.test/}
Output variable: {dede:global.Variable name}
Recommended courses:PHP video tutorial
The above is the detailed content of [PHP website] How to use dedecms v5.7 front-end template to output variables. For more information, please follow other related articles on the PHP Chinese website!