문제

I define a a variable in bootstarp.php , In some cases I need to change that value from APP controller. Is it possible in cakephp

define('MAXVALUE',3);

도움이 되었습니까?

해결책

no due to the nature of constants

thats why Configure::read() and write() should be used for such settings.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top