Global config

Global config is a XML file from which data loaded into the system config object.

src/config.xml file:

<config>
    <param name="maxPostSize" value="1048576" /> <!-- 1M upload limit -->
    
    <custom name="myKey1" value="myValue1" />
    <custom name="myKey2" value="myValue2" />
    <custom name="myKey3" value="myValue3" />
</config>

Param's names match config object field names:

  • filterTracesByIP [""] - IP address for filter logging;
  • sqlLogLevel [0] - sql logging level (0 - errors only, 1 - queries, 2 - queries and durations);
  • enableProfiling [false] - log profiling results;
  • isTraceComponent [false] - log component creations;
  • customs [empty hash] - your custom data (autotyped);
  • maxPostSize [16777216 = 16M] - max post size for files uploading.

Object config can be accessed in your application as a member variable of the page object.

version #217, modified 2013-10-03 16:55:40 by yar3333