As I'll be moving the site from Local to Staging to Live, and do not want to use hardcoded static URLs for my links and images, I need to use some sort of baseURL (from what I can gather).
I've noticed that smarty has $base_dir, $base_dir_ssl and $base_uri?
As the different environments have different SSL setups (some with and some without), should I not just use base_uri?
What exactly is base_uri and can I use it as a good baseURL identifier that changes according to the domain the site is on?
Also, if the user adds an image to a CMS page on one environment (the normal way by using TinyMce and not a baseUrl 'enchancement'), does that path need to be updated again manually when the site is moved to another domain?
Question
Acer
Hi
As I'll be moving the site from Local to Staging to Live, and do not want to use hardcoded static URLs for my links and images, I need to use some sort of baseURL (from what I can gather).
I've noticed that smarty has $base_dir, $base_dir_ssl and $base_uri?
Edited by TheoAs the different environments have different SSL setups (some with and some without), should I not just use base_uri?
What exactly is base_uri and can I use it as a good baseURL identifier that changes according to the domain the site is on?
Also, if the user adds an image to a CMS page on one environment (the normal way by using TinyMce and not a baseUrl 'enchancement'), does that path need to be updated again manually when the site is moved to another domain?
5 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now