How to get Folder name, File name and other parameters from 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: How to get Folder name, File name and other parameters from URL (/showthread.php?tid=10189) |
How to get Folder name, File name and other parameters from URL - El Forum - 07-22-2008 [eluser]Blue Sapphire[/eluser] Hi! How can I get folder name, file name etc from following url: http://localhost/rq/index.php/ad/dashboard 'ad' : is folder 'dashboard' : is file Is there any built in function/code in 'CI' for getting above mention thing? Thanks in advance How to get Folder name, File name and other parameters from URL - El Forum - 07-22-2008 [eluser]Yash[/eluser] Dude just read user guide http://ellislab.com/codeigniter/user-guide There are no file or folder like old php style... If you want to get that url part use Code: $this->uri->segment(n) How to get Folder name, File name and other parameters from URL - El Forum - 07-22-2008 [eluser]Blue Sapphire[/eluser] Really thanks for guidance |