$base_url in global scope