Route · Mecha CMS

Do something if URL path matched with pattern.

$route::fire()

Author: Taufik Nurrohman · 164 Views

Tweet

Execute the added routes.

Route::fire($id = null, $lot = []);

Example:

Route::fire();

Execute specific route with pre-defined value:

Route::fire('blog/%s%/%i%', ['archive', 4]);