Skip to content

Conversation

@blackakula
Copy link
Contributor

When some extension already extended \Illuminate\View\FileViewFinder with additional view paths, we need to consider all of them.

Example: https://github.com/igaster/laravel-theme

Here paths will be like:

  1. resources/views/
  2. resources/views
    And we need to check modules template files in all of them (according to themes fallback). So, in our case it will become:
  3. resources//views/module/
  4. resources/views/module/ (this one is the same as $viewPath variable).

Why not publishes themes templates? IMO, modules should not be supplied with strange themes, unless it is module bringing specific theme, but in this case this module provider could do publish by itself.

Thanks

When some extension already extended \Illuminate\View\FileViewFinder with additional view paths, we need to consider all of them.

Example: https://github.com/igaster/laravel-theme

Here paths will be like resources/<theme>/views, resources/views - we need to check modules template files in all of them (according to themes fallback). So, in our case it will become resources/<theme>/views/module/<module> and resources/views/module/<module> (last one is the same as `$viewPath` variable.

Why not publishes themes templates? IMO, modules should not be supplied with strange themes, unless it is module bringing specific theme, but in this case this module provider could do publish by itself.

Thanks
gravitano added a commit that referenced this pull request Dec 23, 2015
Updated stub to use all the paths of view finder
@gravitano gravitano merged commit 5cfe969 into pingpong-labs:master Dec 23, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants