Closed mahmutbayri closed 9 years ago
This method allows to use view name without view namespace. Views files dont have to know which theme is activated.
Example view in any module or default resource/views folder.
@extends('layouts.master') @section('content') content @endsection
'layouts.master' view will be search in default resource/view/layouts folder and active theme view/layouts folder.
To active this feature, run Theme::registerViewLocation() in where you need.
Theme::registerViewLocation()
You can use also use laravel native view function after registering view folder of active theme.
view
view('pingphong.themetest') and Theme::view('pingphong.themetest') will be same.
This method allows to use view name without view namespace. Views files dont have to know which theme is activated.
Example view in any module or default resource/views folder.
'layouts.master' view will be search in default resource/view/layouts folder and active theme view/layouts folder.
To active this feature, run
Theme::registerViewLocation()
in where you need.