CodeIgniter Forums
Is there is easy way to get the name of index.php - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: Is there is easy way to get the name of index.php (/showthread.php?tid=32820)



Is there is easy way to get the name of index.php - El Forum - 08-05-2010

[eluser]datactrl[/eluser]
I used the following to access same application but different database
www.website.com/a.php/my_class/my_method/p1/p2,
www.website.com/b.php/my_class/my_method/p1/p2,

My question is how I get the name of a.php or b.php. Is there a easy way to get that name?


Is there is easy way to get the name of index.php - El Forum - 08-06-2010

[eluser]Clooner[/eluser]
Google is your friend: http://tinyurl.com/25llhw8


Is there is easy way to get the name of index.php - El Forum - 08-06-2010

[eluser]Unknown[/eluser]
Code:
<?php echo $this->config->item('index_page'); ?



Is there is easy way to get the name of index.php - El Forum - 08-06-2010

[eluser]WanWizard[/eluser]
The config might not be correct. It's better to use the constant SELF.


Is there is easy way to get the name of index.php - El Forum - 08-06-2010

[eluser]clip[/eluser]
[quote author="clooner" date="1281094187"]Google is your friend: http://tinyurl.com/25llhw8[/quote]

Good stuff Wink