Theme::view() seems to default to /resources/views regardless of public/theme
merfed opened this issue · comments
It seems Theme::view()
is not finding the view inside of a themes folder even if it exists. Folder structure is as so: public/themes/default/views/welcome.blade.php
. The active theme is set as default, and the $views
array outputs:
'theme' => string 'default::welcome' (length=16)
'parent' => string 'default::welcome' (length=16)
'module' => null
'base' => string 'welcome' (length=7)
$this->viewFactory->exists($view)
returns false on all accounts until base, where it finds it.
No idea if this is a bug, or if I'm just missing something.
Hey merfed, was struggling with this but I think I just figured out the problem:
http://codex.caffeinated.ninja/themes/master/themes/folder-structure
The only required directory is the views directory. So in your theme directory, place all your views like this default-theme/views/welcome.blade.php etc etc
Looks like @merfed's directory structure is correct, they stated that their themes view file is at:
public/themes/default/views/welcome.blade.php
This could be a bug. I'll be sure to look into this more soon and get back to you guys on the matter. Just wanted to reply right now so you know this isn't being over-looked!
@merfed , maybe You should update your config/themes.php like I did.
Was unable to reproduce this. Please check all your configuration settings to make sure everything is set up correctly.