include function

include function

#If the assign attribute is set, the variable name corresponding to this attribute is used to save the output of the template to be included, so that it will be included The output of the template will not be displayed directly.

You can pass parameters to the template to be included in attributes. The parameters passed to the template to be included are only visible in the template to be included

eg :

{*title,table_bgcolor will replace the original title,table_bgcolor attribute*}

{include file="header.tpl" title="Main Menu" table_bgcolor="#c0c0c0"}
{* body of template goes here *}
{include file="footer.tpl"}

Continuing Learning
||
<?php echo "include函数";
submitReset Code
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!