Kohana 3: Unable to find a route to match the URI

If you get Unable to find a route to match the URI: /some/uri/path/args on Kohana 3 when attempting to request a action with more than one paramter, you will need to update the code in /application/bootstrap.php:


Route::set('default', '(<controller>(/<action>(/<id>(/<overflow>))))', array('overflow' => '.*?'))
	->defaults(array(
		'controller' => 'home',
		'action'     => 'index',
	));

I don’t get why this wasn’t added by default, along with all the controller, helper, model, views directories in /application similar to Kohana 2. Compounded with the poor documentation, Kohana 3 really is starting to tick me off. The time saved by Kohana is wasted on these things.

Leave a Reply

Your email address will not be published.