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.

We've moved the forum!

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.

General Questions /

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

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

Assest image on a subdirectory


Go to End


3 Posts   895 Views

Avatar
web2works

Community Member, 50 Posts

9 March 2011 at 1:53am

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

Avatar
Willr

Forum Moderator, 5523 Posts

9 March 2011 at 9:44pm

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

Avatar
web2works

Community Member, 50 Posts

10 March 2011 at 12:21am

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