cms.router.beforeRoute
Fires before the CMS Router handles a route
Example usage:
Event::listen('cms.router.beforeRoute', function ((string) $url, (\Cms\Classes\Router) $thisRouterInstance) { return \Cms\Classes\Page::loadCached('trick-theme-code', 'page-file-name'); });
Usage
Triggers
Class or file | Line |
---|---|
Cms\Classes\Router
|
92 |
Copyright © 2024 Winter CMS