How to get Folder name, File name and other parameters from URL |
[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
[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)
|
Welcome Guest, Not a member yet? Register Sign In |