To be able to set application wide constants inside the application ini file you can define a function as follows in the bootstrap class:
protected function setconstants($constants){ foreach ($constants as $key=>$value){ if(!defined($key)){ define($key, $value); } } }
Now in you application.ini you can define contants like so:
constants.PREVIEW_PATH = /cache/previews/
thanks!!