Constant values can modify inside app controller?
-
27-10-2019 - |
Question
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);
Solution
no due to the nature of constants
thats why Configure::read() and write() should be used for such settings.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow