Thursday 15 March 2012

templates - Where does the $BaseHref value come from in SilverStripe? -



templates - Where does the $BaseHref value come from in SilverStripe? -

i can utilize {$basehref} in templates, set utilize live website address when i'm using dev re-create of site. i've done flush=all. come from, can alter it?

edit: sorry! discovered still had hard-coded url in template. however, sounds $basehref value became deprecated in silverstripe 3.0. should using instead?

questions should answered, although in comments. reply statistic :-) it's generated dynamically deprecated. should utilize $absolutebaseurl , generated here:

https://github.com/silverstripe/silverstripe-framework/blob/3.1/control/director.php#l768

https://github.com/silverstripe/silverstripe-framework/blob/3.1/control/director.php#l554

https://github.com/silverstripe/silverstripe-framework/blob/3.1/core/constants.php#l165

templates url global-variables silverstripe

No comments:

Post a Comment