Jump to:

22975 Posts in 11620 Topics by 2826 members

General Questions

SilverStripe Forums » General Questions » Assest image on a subdirectory

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

Page: 1
Go to End
Author Topic: 564 Views
  • web2works
    Avatar
    Community Member
    50 Posts

    Assest image on a subdirectory Link to this post

    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

  • Willr
    Avatar
    Forum Moderator
    5462 Posts

    Re: Assest image on a subdirectory Link to this post

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

  • web2works
    Avatar
    Community Member
    50 Posts

    Re: Assest image on a subdirectory Link to this post

    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

    564 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.