如何管理常量?
我在我的网站上使用zencart.
我将所有全局常量添加到:
includes/languages/english/english.php
我的内容在我的任何页面中使用,例如:
includes/modules/meta_tags.php
问题是,有些日子我从任何php文件中删除一个常量,但我不会在english.php中删除它.
一次又一次,我不知道english.php中的常量是什么,它们在哪里使用.
有没有办法知道在php文件中使用了什么常量?
// includes/languages/english/english.php
define('HELLO','hello');
define('WORLD','world');
?>
// includes/modules/meta_tags.php
echo HELLO;
?>
// includes/modules/product_listing.php
echo WORLD;
?>