I m trying to make a route rule to make my request to the main page in kohana. It s sth of this kind: http://my_site/
And got into trouble here. In docs they write i can make this or that, lots of variants, but no example for mine. Simply saying if i try to do this way
Route::set( main/index , )
->defaults(array(
controller => main ,
action => index ,
));
然后,如果一字面写: i 链接到同一页。 如果是,
Route::set( main/index , null)
->defaults(array(
controller => main ,
action => index ,
));
No result again, uri callback should have a valid value.
In official manual they suggest this variant
Route::set( default , (<controller>(/<action>(/<id>))) )
->defaults(array(
controller => welcome ,
action => index ,
));
But i need a rule with a strict match i.e. just http://my_site/, not http://my_site/(<controller>(/<action>(/<id>)))
Is there a way to help me out from this without rewriting Route class?
Thanks in advance