What is the potential issue with using constants in PHP templates?
Using constants in PHP templates can lead to maintenance issues if the constant values need to be changed frequently. To solve this issue, it is recommended to use configuration files or variables that can be easily updated without modifying the code.
// config.php
define('SITE_NAME', 'My Website');
// template.php
include 'config.php';
echo SITE_NAME;