문제

after define route for edit fields and create function in controller i get this error: Controller method not found.

My form:

{{ Form::open(array('route' => array('linksPlugin.edit',$linkFields->id))) }}
...
{{ Form::close() }}

My Route:

Route::controller(
            'linksPlugin','linksPluginManagmentController',
                array(
                                                    ...
                        'getEditLink'            => 'linksPlugin.edit',
                                                    ...
                     )
                 );

Controller Action:

public function getEditLink($id){
       print_r($id);
}
도움이 되었습니까?

해결책

You may want to set the form method to GET it is probably defaulting to POST:

{{ Form::open(array(
       'route' => array('linksPlugin.edit', $linkFields->id), 
       'method' => 'GET')) }}
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top