【发布时间】:2014-06-08 07:13:12
【问题描述】:
我是 Laravel 4 的新手,我需要知道如何将多个参数传递给 URL::route
我的路线:
/*==========================
| edit-adherent (Get)
*///========================
Route::post('/manage-association/{id_association}/edit-adherent/{id_adherent}', array(
'as' => 'edit-adherent',
'uses' => 'AdherentController@postEditAdherent'
));
我尝试了以下语法,但它不起作用:
<a href="{{ URL::route('edit-adherent', $id_association, $adherent->id) }}">Edit</a>
我也试过那个:
<a href="{{ URL::route('edit-adherent', array($id_association, $adherent->id)}}">Edit</a>
任何帮助将不胜感激,对我的英语不好表示抱歉
【问题讨论】:
标签: laravel laravel-4 laravel-routing