Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F522734
Phame404Response.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
863 B
Referenced Files
None
Subscribers
None
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
();
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, May 11, 8:20 PM (1 d, 19 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
102648
Default Alt Text
Phame404Response.php (863 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment