mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-15 03:12:41 +01:00
19 lines
468 B
PHP
19 lines
468 B
PHP
|
<?php
|
||
|
|
||
|
abstract class PhabricatorHelpController extends PhabricatorController {
|
||
|
|
||
|
public function buildStandardPageResponse($view, array $data) {
|
||
|
$page = $this->buildStandardPageView();
|
||
|
|
||
|
$page->setApplicationName('Help');
|
||
|
$page->setBaseURI('/help/');
|
||
|
$page->setTitle(idx($data, 'title'));
|
||
|
$page->setGlyph('?');
|
||
|
$page->appendChild($view);
|
||
|
|
||
|
$response = new AphrontWebpageResponse();
|
||
|
return $response->setContent($page->render());
|
||
|
}
|
||
|
|
||
|
}
|