我有以下的bootstap.php路線行代碼的功能,我怎麼也得通參數的Kohana框架工作
Route::set('ads','ad/<ad>(/<affiliate>)')
->defaults(array(
'controller' => 'ads',
'action' => 'index',
));
那我怎麼樣了傳遞參數給function.Url爲localhost/index.php/ads /正在工作,但是當我給localhost/index.php/ads/12時,它顯示404錯誤。我知道如何訪問ads.php中的這些值,但我如何從url傳遞參數。
請注意[此帖](http://stackoverflow.com/faq#signatures) – Dan 2011-12-24 13:12:05