On gists
Store/Restore Request
Nette
Nette-Tricks
Presenter.php
Raw
#
<?php
public function actionDefault($back = null)
{
if ($back)
$this->restoreRequest($back);
if ($this->presenter->navigation->navItem['alias'] == 'allOpenCalls')
{
$parentId = $this->presenter->navigation->navItem['parent__navigation_id'];
$nav = $this->navigation->getById($parentId);
$children = $nav->getChildren();
$this->config['navigation_id'] = array_keys($children);
}
$this->template->back = $this->storeRequest();
}