API16

API16:JURI/setFragment

From Joomla! Documentation

Description

Set the URI anchor string everything after the "#".



Syntax

setFragment($anchor)
Parameter Name Default Value Description
$anchor $anchor The URI anchor string.

Defined in

libraries/joomla/environment/uri.php

Importing

jimport( 'joomla.environment.uri' );

Source Body

public function setFragment($anchor)
{
        $this->_fragment = $anchor;
}



Examples

Code Examples