%PDF- %PDF-
Direktori : /var/www/html/bbw/farmaci/kritik-portale/config/ |
Current File : /var/www/html/bbw/farmaci/kritik-portale/config/application.dev.config.php |
<?php // Errors ini_set('display_errors',1); ini_set('display_startup_errors',1); error_reporting( E_ALL ); $applicationConfig = include __DIR__ . '/application.config.php'; $applicationConfig['modules'][] = 'ZendDeveloperTools'; /** * generate js-translation file while on development, they will be commited to repository and deployed when deploying * a new release to the servers * not the ideal way to do it but if we do it on deployment phase we do not have it locally while developing * * @todo improve the way it is done */ //convert to javascript array $de_DE_translation = include('./localization/de_DE.php'); $de_DE_JSON = json_encode($de_DE_translation); //add necessary wrapper code to make parsing via browser possible $fileContents = "var de_DE_translation = JSON.parse('$de_DE_JSON');"; //write contents of translation array to separate js file so we can use the stuff in js translations without redefining it file_put_contents("./localization/js/de_DE_php.js", $fileContents); return $applicationConfig;