setFragment() public method

Sets the fragment in the URI
public setFragment ( string $fragment ) : void
$fragment string The fragment (aka "anchor")
return void
コード例 #1
0
ファイル: Request.php プロジェクト: neos/flow
 /**
  * Tries to detect the base URI of request.
  *
  * @return void
  */
 protected function detectBaseUri()
 {
     if ($this->baseUri === null) {
         $this->baseUri = clone $this->uri;
         $this->baseUri->setQuery(null);
         $this->baseUri->setFragment(null);
         $this->baseUri->setPath($this->getScriptRequestPath());
     }
 }