Finding the Current Route Prefix in CakePHP
Finding the current route prefix in CakePHP is easy.
This can apply, for example, when the user is navigating beneath the "Admin" prefix, or another prefix of your choosing.
//find out what the current prefix is echo $this->request->getParam('prefix')