最佳答案
我对幼虫感到陌生。我有一个基本的问题,什么是最好的方法,添加常数在幼虫。 我知道我们用来添加常量的. env 方法。 另外,我还创建了一个常量文件,以便在我的项目中使用它们。 例如:
define('OPTION_ATTACHMENT', 13);
define('OPTION_EMAIL', 14);
define('OPTION_MONETERY', 15);
define('OPTION_RATINGS', 16);
define('OPTION_TEXTAREA', 17);
诸如此类。它可以达到100或更多的记录。那么写常量的最佳方法是什么呢。那个。Env 法。或者添加 Constant.php 文件?
谢谢