/** Returns page URL or NULL */ function pageLink($id, $lang = false) { if (!$lang) { $lang = $this->i18n->getDefaultLang(); } $params = array('id_page' => $id, 'lang' => $lang); $pagesRouter = new PagesRouter(); //$this->router; then 'Front:Pages' $url = $pagesRouter->constructUrl(new PresenterRequest('Pages', 'GET', $params), $this->request->url); return $url; }