On my application.cfc file, I would like to have set a variable:
application.gsversion = "Version 0.1.#year(x)#.#month(x)#.#day(x)#";
where x has the application.cfc's current modified date.
Add something like this to your onApplicationStart() method in Application.cfc:
var objAppFile = fileopen(expandpath('./Application.cfc'), 'read');
application.gsversion = "Version 0.1.#year(objAppFile.lastmodified)#.#month(objAppFile.lastmodified)#.#day(objAppFile.lastmodified)#";
fileclose(objAppFile);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With