App\Controllers\Sites\UniversalPageController::sectionAction PHP Method

sectionAction() public method

public sectionAction ( Psr\Http\Message\ServerRequestInterface $req, $res )
$req Psr\Http\Message\ServerRequestInterface
    public function sectionAction(request $req, $res)
    {
        $this->data['pageData'] = SectionFactory::getSectionWithRequest($req);
        $this->setRequestResult($req, $res);
        $this->data['subSections'] = Sections::getSubSections($this->data['pageData']->id);
        $this->data['pagesLinks'] = Pages::where('category_id', $this->data['pageData']->id)->get();
        $this->render('public\\main\\pages\\section_page.twig');
    }