Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93206412
Phame404Response.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Wed, Nov 27, 00:40
Size
863 B
Mime Type
text/x-php
Expires
Fri, Nov 29, 00:40 (2 d)
Engine
blob
Format
Raw Data
Handle
22575066
Attached To
rPH Phabricator
Phame404Response.php
View Options
<?php
final
class
Phame404Response
extends
AphrontHTMLResponse
{
private
$page
;
public
function
setPage
(
AphrontPageView
$page
)
{
$this
->
page
=
$page
;
return
$this
;
}
public
function
getPage
()
{
return
$this
->
page
;
}
public
function
getHTTPResponseCode
()
{
return
404
;
}
public
function
buildResponseString
()
{
require_celerity_resource
(
'phame-css'
);
$not_found
=
phutil_tag
(
'div'
,
array
(
'class'
=>
'phame-404'
,
),
array
(
phutil_tag
(
'strong'
,
array
(),
pht
(
'404 Not Found'
)),
phutil_tag
(
'br'
),
pht
(
'Wherever you go, there you are.'
),
phutil_tag
(
'br'
),
pht
(
'But the page you seek is elsewhere.'
),
));
$page
=
$this
->
getPage
()
->
setTitle
(
pht
(
'404 Not Found'
))
->
appendChild
(
$not_found
);
return
$page
->
render
();
}
}
Event Timeline
Log In to Comment