nezobrazi se mi fragmenty z url
Upozornění: Tohle vlákno je hodně staré a informace nemusí být platné pro současné Nette.
- vosy
- Člen | 532
ahoj mam url: http://www.obrb.loc/?…
script:
$httpRequest = $this->getService('httpRequest');
$urlObj = $httpRequest->getUrl();
print_r($urlObj);
vysledek
Nette\Http\UrlScript Object
(
[scriptPath:Nette\Http\UrlScript:private] => /
[scheme:Nette\Http\Url:private] => http
[user:Nette\Http\Url:private] =>
[pass:Nette\Http\Url:private] =>
[host:Nette\Http\Url:private] => www.obrb.loc
[port:Nette\Http\Url:private] => 80
[path:Nette\Http\Url:private] => /
[query:Nette\Http\Url:private] => name=param
[fragment:Nette\Http\Url:private] =>
[frozen:Nette\FreezableObject:private] => 1
)
proc tam neni fragment???
Editoval vosy (17. 2. 2014 22:52)
- David Matějka
- Moderator | 6445
jelikoz ho vubec prohlizec neodesila serveru v pozadavku, s tim nic neudelas