예제 #1
0
function DemoParseRoute($segments)
{
    $router = new ContentRouter();
    return $router->parse($segments);
}
예제 #2
0
function ComponentbuilderParseRoute($segments)
{
    $router = new ContentRouter();
    return $router->parse($segments);
}
예제 #3
0
/**
 * Parse the segments of a URL.
 *
 * This function is a proxy for the new router interface
 * for old SEF extensions.
 *
 * @param   array  $segments  The segments of the URL to parse.
 *
 * @return  array  The URL attributes to be used by the application.
 *
 * @since   3.3
 * @deprecated  4.0  Use Class based routers instead
 */
function contentParseRoute($segments)
{
    $app = JFactory::getApplication();
    $router = new ContentRouter($app, $app->getMenu());
    return $router->parse($segments);
}