![]() |
new url - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: new url (/showthread.php?tid=48853) |
new url - El Forum - 01-31-2012 [eluser]Bigil Michael[/eluser] similar to base_url i want to create home_url. when i create home_url like this, it shows an error Call to undefined function home_url() Code: $config['home_url']= "http://localhost/test/"; can anyone tell me where to define the function??? new url - El Forum - 01-31-2012 [eluser]Aken[/eluser] Create the file Code: application/helpers/MY_url_helper.php Add your home_url() function there, and it will be accessible when you load the URL helper. new url - El Forum - 01-31-2012 [eluser]Bigil Michael[/eluser] thanks |