jakubsacha / adminlte

29 stars 16 forks source link

After installation finish I got Views error Undefined variable: siteName #2

Closed azulkipli closed 10 years ago

azulkipli commented 10 years ago

Undefined variable: siteName (View: D:\xampp\htdocs\adminlte\vendor\jakubsacha\adminlte\src\views\layouts\dashboard\header.blade.php)

How to solve this?

jakubsacha commented 10 years ago

put this somewhere in bootstrap (for example in routes):

View::composer('adminlte::layouts.dashboard.master', function($view) {
    $view->with('siteName', 'Site name');
});

this is bug, i'll fix that.

azulkipli commented 10 years ago

Where do you mean put that code? routes.php? (Im still learning basic Laravel)

Tried that, next error message

Undefined variable: icon (View: D:\xampp\htdocs\adminlte\vendor\jakubsacha\adminlte\src\views\layouts\dashboard\content.blade.php)

mgufrone commented 10 years ago

from now on, it's already fixed with this merge #3 . try update your app. :+1: