Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F81583279
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
Fri, Sep 6, 21:22
Size
863 B
Mime Type
text/x-php
Expires
Sun, Sep 8, 21:22 (1 d, 21 h)
Engine
blob
Format
Raw Data
Handle
20597182
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