<?php
namespace Rudolf\Modules\Pages;

use Rudolf\Modules\A_front\FController;
use Rudolf\Component\Http\HttpErrorException;

class Controller extends FController
{
    public function page($sAddress)
    {
        $addressArray = explode('/', trim($sAddress, '/'));

        $model = new Model();
        $pagesList = $model->getPagesList();
        $pageId = $model->getPageIdByPath($addressArray, $pagesList);

        if (false === $pageId) {
            throw new HttpErrorException('No page found (error 404)', 404);
        }

        $pageData = $model->getPageById($pageId);

        $view = new View();
        $view->page($pageData);
        $aAddress = explode('/', $sAddress);
        $view->setFrontData($this->frontData, $aAddress[0]);
        $view->setBreadcrumbsData($pagesList, $aAddress);

        return $view->render();
    }
}

<?php
namespace Rudolf\Modules\Pages;

use Rudolf\Modules\A_front\FController;
use Rudolf\Component\Http\HttpErrorException;

class Controller extends FController
{
    public function page($sAddress)
    {
        $addressArray = explode('/', trim($sAddress, '/'));

        $model = new Model();
        $pagesList = $model->getPagesList();
        $pageId = $model->getPageIdByPath($addressArray, $pagesList);

        if (false === $pageId) {
            throw new HttpErrorException('No page found (error 404)', 404);
        }

        $pageData = $model->getPageById($pageId);

        $view = new View();
        $view->page($pageData);
        $aAddress = explode('/', $sAddress);

        $temp = '';
        foreach ($aAddress as $key => $value) {
            $active[] = ltrim($temp = $temp . '/' . $value, '/');
        }

        $view->setFrontData($this->frontData, $active);
        $view->setBreadcrumbsData($pagesList, $aAddress);

        return $view->render();
    }
}

Add more info about active page
Add more info about active page
