buildStandardPageView(); $page->setApplicationName('Ponder!'); $page->setBaseURI('/ponder/'); $page->setTitle(idx($data, 'title')); $page->setGlyph("\xE2\x97\xB3"); $page->appendChild($view); $page->setSearchDefaultScope(PhabricatorSearchScope::SCOPE_QUESTIONS); $response = new AphrontWebpageResponse(); return $response->setContent($page->render()); } protected function buildSideNavView(PonderQuestion $question = null) { $side_nav = new AphrontSideNavFilterView(); $side_nav->setBaseURI(new PhutilURI($this->getApplicationURI())); $side_nav->addLabel('Create'); $side_nav->addFilter('question/ask', 'Ask a Question'); $side_nav->addSpacer(); $side_nav->addLabel('Questions'); $side_nav->addFilter('feed', 'All Questions'); $side_nav->addSpacer(); $side_nav->addLabel('Profile'); $side_nav->addFilter('profile', 'User Profile'); return $side_nav; } }