AnNaMaLaI
AnNaMaLaI

Reputation: 4084

Constant values can modify inside app controller?

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);

Upvotes: 0

Views: 294

Answers (1)

mark
mark

Reputation: 21743

no due to the nature of constants

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

Upvotes: 2

Related Questions