i cant call css files and images. views pages only working. it cant show stylesheets and images. what can i do?
On Sun, Mar 9, 2014 at 12:57 AM, Mehul Ved <[email protected]> wrote: > On Sat, Mar 8, 2014 at 1:45 PM, Magendra Varman > <[email protected]> wrote: > > How to change Base_URL in Code-Igniter? > > I did search through internet, but i can't get proper solution, what to > do? > > Base URL is defined in application/config/config.php. Why do you want > to change it? From version 2.1 onwards it's auto detected and that > should work well. > That said, here's the base_url I use in my applications and it is > portable to any hostname without fiddling with config files. > $config['base_url'] = ((isset($_SERVER['HTTPS']) && > $_SERVER['HTTPS'] == "on") ? "https" : "http"); > $config['base_url'] .= "://".$_SERVER['HTTP_HOST']; > $config['base_url'] .= > str_replace(basename($_SERVER['SCRIPT_NAME']),"",$_SERVER['SCRIPT_NAME']); > > > -- > With Regards, > Mehul Ved > _______________________________________________ > ILUGC Mailing List: > http://www.ae.iitm.ac.in/mailman/listinfo/ilugc > ILUGC Mailing List Guidelines: > http://ilugc.in/mailinglist-guidelines > _______________________________________________ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc ILUGC Mailing List Guidelines: http://ilugc.in/mailinglist-guidelines
