For some reason, Laravel 4 won't update the content view that should be displayed in the browser.
For example, if I add one more item to the navigation menu, it is written on the view file, but not shown on the navigation list.
I have checked for any mispells, errors or anything related to this issue however I can't figure out if it's my mistake or it has to do with the cache.
What I've done:
And I am sure that the view:
And there are no errors displayed in the browser.
Also I've checked the storage folder which contains the view's cache , and I verified that the navigation file and the view file are phased correctly.
Looks like I need your advice guys.
Code as requested:
The route
Route::get('/account/profile', array(
'as' => 'account-profile',
'uses' => 'SettingsController@getProfileSettings'
));
Navigation
<li><a href="{{ URL::route('account-profile') }}">Edit profile</a></li>
Controller
public function getProfileSettings() {
return View::make('account.profile');
}
View
@extends('layout.main')
@section('content')
Edit your profile...
Not yet...
@stop
First things I would do is:
If that didn't work maybe you could provide us with some code from the layout.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.