The include_php method has been deprecated in the new version of PHP. Viewed the Smarty document, saying "You can use plug-ins to properly solve the problem of separating HTML from (PHP) code"
I am now in the A.tpl file to introduce the b.php file, what should be done. Want to display (B.TPL) in the b.php file. Implement template nesting, do not include_php how to do ah?
Reply to discussion (solution)
Http://www.smarty.net/docsv2/en/language.function.include
Http://www.smarty.net/docsv2/en/language.function.include
The Include method seems to apply to the reference template file, and I'm now going to reference the PHP file in the template file.
Smarty! = PHP
{include_php} is an obsolete function, and it is a better choice to separate the program code from the display by registering the plug-in. Smarty 3.1,{include_php} is only available in SMARTYBC.
Smarty! = PHP
{include_php} is an obsolete function, and it is a better choice to separate the program code from the display by registering the plug-in. Smarty 3.1,{include_php} is only available in SMARTYBC.
Analysis in place Ah, I use the SMARTYBC program has been transferred, I want to know how to register the plug-in way to implement the program code and display separation, can put a real column or link ah.