Page MenuHomePhorge

Aphront404Response.php
No OneTemporary

Size
770 B
Referenced Files
None
Subscribers
None

Aphront404Response.php

<?php
final class Aphront404Response extends AphrontHTMLResponse {
public function getHTTPResponseCode() {
return 404;
}
public function buildResponseString() {
$request = $this->getRequest();
$user = $request->getUser();
$dialog = id(new AphrontDialogView())
->setUser($user)
->setTitle(pht('404 Not Found'))
->addCancelButton('/', pht('Focus'))
->appendParagraph(
pht(
'Do not dwell in the past, do not dream of the future, '.
'concentrate the mind on the present moment.'));
$view = id(new PhabricatorStandardPageView())
->setTitle(pht('404 Not Found'))
->setRequest($request)
->setDeviceReady(true)
->appendChild($dialog);
return $view->render();
}
}

File Metadata

Mime Type
text/x-php
Expires
Tue, Jun 17, 2:02 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
224101
Default Alt Text
Aphront404Response.php (770 B)

Event Timeline