public function __construct($currentPage) { $params = !($p = Manager::getRouteParams()) ? new \StdClass() : $p; $this->_params = new \helpers\ViewModel\Base($params); $this->_currentPage = $currentPage; }