Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Assest image on a subdirectory


3 Posts   611 Views


9 March 2011 at 1:53am Community Member, 50 Posts

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


9 March 2011 at 9:44pm Forum Moderator, 5511 Posts

No. define() cannot be overridden later on in the execution. Assets is likely hardcoded else where as well currently (which is less than ideal).


10 March 2011 at 12:21am Community Member, 50 Posts

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