Note:

The filename module contains all the functions about parameters and filenames in urls.


get_filename()

Returns the URL's filename, without the extension, and with all possible parameters.

URL : http://localhost/templeet/templeet.php/index,Templeet.html
~get_filename()		=>	index,Templeet

get_extension()

Returns URL's extension.

URL : http://localhost/templeet/templeet.php/index,Templeet.html
~get_extension()	=>	html

~get_dirname()

This function returns the name of the current directory. An optional argument enables to retrieve the name of a sub-directory, numbered from the end.

Example :
URL : http://localhost/templeet/templeet.php/dir1/dir2/index.html
~get_dirname()	=>	dir1/dir2/
~get_dirname(1)	=>	dir2
~get_dirname(2)	=>	dir1

get_filenamevar(integer)

Returns a URL's parameter.

URL : http://localhost/templeet/templeet.php/index,Templeet,about.html
~get_filenamevar(1)	=>	Templeet
~get_filenamevar(2)	=>	about

map_filenamevar()

Maps urls parameters to the given variables.

URL : http://localhost/templeet/templeet.php/index,Templeet,about.html
~map_filenamevar('foo','bar')

~get('foo')		=>	Templeet
~get('bar')		=>	about