Class Core_Router
Routers
// Add robots.txt route Core_Router::add('robots.txt', '/robots.txt') ->controller('Core_Command_Controller_Robots'); // Add news route Core_Router::add('news', '/news/({path})(page-{page}/)(tag/{tag}/)') ->controller('Core_Command_Controller_News');
// Resolve route for URI $uri Core_Router::factory(Core::$url['path']) ->execute() ->compress() ->sendHeaders() ->showBody();
Package: HostCMS\Core\Router
Copyright: © 2005-2021 ООО "Хостмэйк" (Hostmake LLC), http://www.hostcms.ru
Author: Hostmake LLC
Version: 6.x
Located at core/router.php
Copyright: © 2005-2021 ООО "Хостмэйк" (Hostmake LLC), http://www.hostcms.ru
Author: Hostmake LLC
Version: 6.x
Located at core/router.php
Methods summary
public static
|
#
add( $routeName, $uri = NULL, array $expressions = array() )
Add route Core_Router_Route with name $routeName for URI with routing rules $uri |
public static
|
Properties summary
protected static
array
|
$_routes
List of routes |
#
array()
|