get base_url() inside custom config file |
[eluser]Otemu[/eluser]
Check out the guide here on loading a custom config file http://ellislab.com/codeigniter/user-gui...onfig.html After you have loaded your config file you should now have access to base_url() if not then check out the helper functions as explained below: Helper Functions The config class has the following helper functions: $this->config->site_url(); This function retrieves the URL to your site, along with the "index" value you've specified in the config file. $this->config->base_url(); This function retrieves the URL to your site, plus an optional path such as to a stylesheet or image. The two functions above are normally accessed via the corresponding functions in the URL Helper. $this->config->system_url(); This function retrieves the URL to your system folder. Hope that helps |
Messages In This Thread |
get base_url() inside custom config file - by El Forum - 03-02-2012, 10:54 AM
get base_url() inside custom config file - by El Forum - 03-12-2012, 08:33 AM
|