Actions

Difference between revisions of "JURI/current"

From Joomla! Documentation

(New page: A static method that returns the current request URI without the query or fragment parts. ===Syntax=== string current() ===Example=== <source lang="php"> echo 'Joomla current URI is ' . J...)
 
m (See also: re-categorisation)
 
Line 13: Line 13:
 
* [[JURI/base|JURI::base]]
 
* [[JURI/base|JURI::base]]
 
* [[JURI/root|JURI::root]]
 
* [[JURI/root|JURI::root]]
<noinclude>[[Category:Development]][[Category:Framework]][[Category:JURI]]</noinclude>
+
<noinclude>[[Category:JURI]]</noinclude>

Latest revision as of 11:32, 9 August 2012

A static method that returns the current request URI without the query or fragment parts.

Syntax

string current()

Example

echo 'Joomla current URI is ' . JURI::current() . "\n";

might output

Joomla current URI is http://localhost/joomla/index.php

See also