Hello,
I have this link
<li><a href="{{URL::route('abbonementen.create', null) }}"><span class="side_icon ion-plus"></span> Niewe Abbonementen</a></li>
and abbonementen.create looks this way :
public function create()
{
return View::make('abbonementen.create');
}
and in views I have a directory abbonementen with a file called create.blade.php
But still if I want to see the form I see this message :
View [abbonementen.create] not found.
Roelof
This sounds like a silly problem I had not too long ago.
I found that I had accidentally named the file incorrectly and used a comma instead of a period like so:
myview,blade.php (note the comma).
I checked and it's not the case here:
action@comfortable-lannisport-33-149212:~/workspace/finance/app/views/abbonementen $ ls
create.blade.php
Roelof
Here is the routes.php file
Route::get('/', array('as' => 'home', 'uses' => 'HomeController@showDashboard' ));
Route::resource ('abbonementen', 'AbbonementenController');
modify the config/view.php to include your new folder path like so.
'paths' => [
__DIR__.'/../views',
__DIR__.'/../views/abbonementen',
],
Hello,
I found it after some talking on IRC. There was a extra space after the abbonementen directory name
Roelof
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community