Kohana automatically sets up URLs like so
http://www.example.com/controller/method/argument1/argument2/etc
Now I like to use the dash to separate my words in the URL, and I have an address like so
http://www.example.com/business-hub
My controller is titled BusinessHub_Controller. What is annoying me, is for /business-hub/ to match the BusinesHub controller, I need to add a custom entry into the routes.php under the application/config folder. It also seems I have to add one for every method, which is really annoying. For example, here is an excerpt,
$config['business-hub'] = 'businesshub/index/';
$config['business-hub/logout'] = 'businesshub/logout';
$config['business-hub/media-releases'] = 'businesshub/mediareleases';
Obviously, this is really annoying. Is there anyway I can tell Kohana to convert the URL into the camelCase name, something like
$urlController = 'business-hub';
$correctController = str_replace('-', ' ', $urlController);
$correctController = ucwords($correctController);
$correctController = str_replace(' ', null, $correctController);
$correctController = $correctController . '_Controller';