Skip to content

Instantly share code, notes, and snippets.

@ADmad
Created November 16, 2015 16:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ADmad/70d5b5917f77ec6e60b5 to your computer and use it in GitHub Desktop.
Save ADmad/70d5b5917f77ec6e60b5 to your computer and use it in GitHub Desktop.
<?php
// Don't automatically add "prefix" to urls
Router::addUrlFilter(function ($params, $request) {
if (!isset($params['_name']) && !array_key_exists('prefix', $params)) {
$params['prefix'] = false;
}
return $params;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment