What best practices should be followed when including PHP files in a template using Smarty?

When including PHP files in a template using Smarty, it is important to follow best practices to ensure security and maintainability. One recommended approach is to use Smarty's {include_php} function, which allows you to include PHP files within your template while still keeping the separation of logic and presentation. Additionally, make sure to sanitize any user input before including it in the template to prevent security vulnerabilities.

{include_php file="path/to/your/php/file.php"}