New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

View path appears to be broken on widgets #621

jesseschutt opened this Issue Apr 20, 2016 · 0 comments


None yet
2 participants

jesseschutt commented Apr 20, 2016

Steps to reproduce

  1. Use $this->view('widget') in an addon widget

Expected behaviour

I would expect the widget view to be displayed.

Actual behaviour

Attempting to use return $this->view('widget'); in an AddonWidget.php file returns the following error:

FatalErrorException in DashboardController.php line 0: Method Illuminate\View\View::__toString() must not throw an exception

Dumping the $directory in \Statamic\Extent\Extensible on line 357 shows "/home/vagrant/Sites/statamic2/statamic/bundles/Collection/resources/views".

I'm assuming this should be referencing the addons path instead of the Collection path?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment