protected function checkActiveCategory($category, $url) { if ($category['redirect_route'] == 'frontend.news' && $this->registry->router->getCurrentController() == 'news') { return true; } else { return $url == App::getUrl() ? true : false; } }
/** * Output the complete url * @access public * @static * @param string $pUri */ public static function url($pUri = '') { echo App::getUrl($pUri); }