Hi I am trying to over write the in saphire/core/Core.php
define('ASSETS_DIR', 'assets');
Is it possible to overwrite this from mysite directory?
Thanks Ben
This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.
Please use forum.silverstripe.org for any new questions
(announcement).
The forum archive will stick around, but will be read only.
You can also use our Slack channel
or StackOverflow to ask for help.
Check out our community overview for more options to contribute.
Hi I am trying to over write the in saphire/core/Core.php
define('ASSETS_DIR', 'assets');
Is it possible to overwrite this from mysite directory?
Thanks Ben
No. define() cannot be overridden later on in the execution. Assets is likely hardcoded else where as well currently (which is less than ideal).
Ok thanks, guess I will have to manually prefix with the subdomain.
I am just trying to decrease the load time of my page. I read that spreading the load between subdomains can increase the max number of requests at once. Is this correct? Are there any otherways to speed things up?
Thanks Ben