Welcome Guest, Not a member yet? Register   Sign In
Change Index Page With Site URL Function
#1

[eluser]ShoeLace1291[/eluser]
I have two different applications under one installation of codeigniter. one is accessed by the index page set to "admin.php", the other "main.php". So to access the admin area I would go to mysite.com/admin.php/home and to access the main area i would go to mysite.com/main.php/home. I need to link from the admin area to the main area.

The link I'm trying to make is located on a page in the admin area and when I use the site_url function in the url helper, it just adds admin.php. Is there a way I can change the admin.php in the function to main.php?

PS: CI should add a parameter for which index file they want to use, not just the boolean for whether or not to add the index file to the end of the url
#2

[eluser]eoinmcg[/eluser]
you know you can override the site_url function by creating MY_url_helpers.php in you application/helpers directory?




Theme © iAndrew 2016 - Forum software by © MyBB