php - Laravel 4, I defined a route but error message still says [route] not defined -


i defined route in laravel as:

/*create commission (post)*/ route::post('/commissions/create', array(   'as'    => 'commission-create-post',   'uses'  => 'commissioncontroller@postcreate', )); 

but getting error message: route [commission-create-post] not defined. when routes using php artisan routes in command prompt not showing up.

i have used similar code other routes not understand why not working. , understanding went wrong or how fix problem appreciated! thank much!


edit

here link in nav:

<li><a href="{{ url::route('commission-create') }}">a commission</a></li> 

here function in commissioncontroller

public function getcreate(){         return view::make('commissions.create');     } 

it leads form creating commission. form display if remove commission-create-post part of

{{ form::open(array('route'=>'commission-create-post', 'name' => 'commission_form', 'id' => 'commission_form')) }}   

if don't error message saying route not defined despite being defined in routes file.


Comments

Popular posts from this blog

java - Intellij Synchronizing output directories .. -

git - Initial Commit: "fatal: could not create leading directories of ..." -