I recommend that you create a file / class that serves to place the values of the CONST application, and then require that this file / autoload of this class in the file of the application boot file.
define("MYSQL_DATETIME_FORMAT", "Y-m-d H:i:s");
Then define a property in your ApplicationController, for example $mysql_datetime = MYSQL_DATETIME_FORMAT;, and pass that value to your views, view helper, or decorator class.
(.. ), (, function to_mysql_datetime($timeval){...}). :
$formatted_datetime = DateFormatHelper::to_mysql_datetime($other_datetime_value);
CakePHP :
, config/bootstrap.php. CLI.
:
. . . . .
MVC : , . youll . " ", , .