php

php tags allow php to be embedded directly into the template. They will not be escaped, regardless of the $php_handling setting. This is for advanced users only, not normally needed.

php 標籤可以將 php 程式碼直接嵌入樣板檔案,如果有設定 $php_handling 的話則標籤內的內容才有可能會被脫序。只有進階使用者才會建議使用這個標籤,一般使用者 則不建議使用。

Example 7-14. php 標籤

{php}
		// including a php script directly
		// from the template.
		include("/path/to/display_weather.php");
{/php}