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


Reply


3 Posts   677 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, 5513 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