Welcome Guest, Not a member yet? Register   Sign In
How to get Folder name, File name and other parameters from URL
#1

[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
#2

[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)
#3

[eluser]Blue Sapphire[/eluser]
Really thanks for guidance




Theme © iAndrew 2016 - Forum software by © MyBB