Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 bootstarp.php 中定义了一个变量,在某些情况下我需要从 APP 控制器更改该值。有没有可能在 cakephp
定义('MAXVALUE',3);
没有,因为常数的性质
这就是为什么应将 Configure::read() 和 write() 用于此类设置的原因。