HelPHP

constants.php

Table of Contents

Functions

make_constants_js()  : string|files
The constants utils is used to make/update a js file with all needed constants like some translations, basic context infos etc, anything that is necessary to make run js parts of modules and helPHP js libs

Functions

make_constants_js()

The constants utils is used to make/update a js file with all needed constants like some translations, basic context infos etc, anything that is necessary to make run js parts of modules and helPHP js libs

make_constants_js(mixed $target) : string|files

can be called from cli with instance path as argument: php helphp/utils/constants.php instance_home_path

Parameters
$target : mixed

the home path of the instance to get config

Return values
string|files

echoing results and js/constants*.js files in the instance.


        
On this page

Search results