laravel 4 の link_to_action に問題があります
laravel 3では、次のようなリンクを表示します
{{ HTML::link_to_action('user/create', 'Create User') }}
しかし、laravel 4に切り替えたので、このUserControllerのようなコントローラーを作成していますが、HTMLを使用しようとすると
{{ HTML::linkAction('user/create', 'Create User') }}
createという名前のメソッドがあってもアクションが存在しないというエラーが表示されます。どんな助けでも大歓迎です。
そして、これが私のコントローラーです
<?php
class UserController extends \BaseController {
/**
* Display a listing of the resource.
*
* @return Response
*/
public function index()
{
//
}
/**
* Show the form for creating a new resource.
*
* @return Response
*/
public function create()
{
//
}
/**
* Store a newly created resource in storage.
*
* @return Response
*/
public function store()
{
//
}
/**
* Display the specified resource.
*
* @param int $id
* @return Response
*/
public function show($id)
{
//
}
/**
* Show the form for editing the specified resource.
*
* @param int $id
* @return Response
*/
public function edit($id)
{
//
}
/**
* Update the specified resource in storage.
*
* @param int $id
* @return Response
*/
public function update($id)
{
//
}
/**
* Remove the specified resource from storage.
*
* @param int $id
* @return Response
*/
public function destroy($id)
{
//
}
}