How to changes the default URL format in kohana 3.2.
base/news/news_details to news/
Route::set('news_tracking2', 'news/news_details')
->defaults(array('controller' => 'news','action' => 'index','method' => NULL));
How to changes the default URL format in kohana 3.2.
base/news/news_details to news/
Route::set('news_tracking2', 'news/news_details')
->defaults(array('controller' => 'news','action' => 'index','method' => NULL));
You mix the concepts. There is a routing that translates the incoming URL into
Request::controller-action(1). And generate links for HTML (2).1: For routes:
link generation
URL::site(Route::get('default')->uri(array('id' => 1)));
give result:
http://example.com/news/index/1give result:
http://example.com/awesome_news_prefix/1