What are common reasons for Smarty to output PHP code instead of parsing it correctly?

Smarty may output PHP code instead of parsing it correctly due to incorrect Smarty tags, missing or incorrect template delimiters, or incorrect Smarty configuration settings. To solve this issue, ensure that your Smarty tags are properly formatted, check that your template delimiters are set correctly, and review your Smarty configuration settings to ensure they match your project requirements.

$smarty->setLeftDelimiter('{');
$smarty->setRightDelimiter('}');